public void TestPropertyChanged() { var obj = new FakePropertyStore(); var propertyName = "Unknown"; obj.PropertyChanged += (S, E) => propertyName = E.PropertyName; const string newValue = "New Value"; obj.Property = newValue; Assert.Equal(obj.Property, newValue); Assert.Equal(nameof(obj.Property), propertyName); }
public void CheckDefaultValue() { var obj = new FakePropertyStore(); Assert.Equal(obj.Property, FakePropertyStore.DefaultPropertyValue); }