public void Bindings_SubWorks() { using (var thing = new Thing2()) { thing.Subthing1.Quantity = 10; thing.Subthing2.Quantity = 20; Assert.Equal(30, thing.Total); } }
public void Bindings_IgnoresUnobservedProperty() { using (var thing = new Thing2()) { thing.Subthing1.Quantity = 10; thing.Subthing2.Quantity = 20; thing.Subthing3 = new SubThing(); Assert.Equal(30, thing.Total); } }