Esempio n. 1
0
        public void Bindings_SubWorks()
        {
            using (var thing = new Thing2())
            {
                thing.Subthing1.Quantity = 10;
                thing.Subthing2.Quantity = 20;

                Assert.Equal(30, thing.Total);
            }
        }
Esempio n. 2
0
        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);
            }
        }