public function testChangeSnapshotResetsDirtyness() { $model = new ModelState(); $model->NewProperty = "123"; $this->assertTrue($model->hasChanged()); $model->takeChangeSnapshot(); $this->assertFalse($model->hasChanged()); }