public InvokeGoodPropertyMessage ( ) : void | ||
Résultat | void |
public void EditableObjectModelBase_BasicFunctionalityTest() { using (var verify = new Verify()) { var person = new EditablePerson(); var eventAssert = new PropertyChangedEventTest(verify, person); Assert.IsNull(person.FirstName); Assert.AreEqual("", person.LastName); person.FirstName = "John"; eventAssert.ExpectUnordered("FirstName", "IsChangedLocal", "IsChanged", "FullName"); person.LastName = "Doe"; eventAssert.ExpectUnordered("LastName", "FullName"); person.InvokeGoodPropertyMessage(); eventAssert.ExpectEvent("FullName"); } }