public void DependsOn_TwoLevelTreeWithVaryingTypes_FiresUpdatesProperly()
        {
            var root   = new ReactiveType0();
            var child  = new ReactiveType1();
            var person = new ReactivePerson();

            root.ChildReactiveType1   = child;
            child.ChildReactivePerson = person;
            person.Name = "Jim";
            //child.Name = "Bob";

            Assert.AreEqual(3, root.Updates);
        }
Пример #2
0
        public void DependsOn_TwoLevelTreeWithVaryingTypes_FiresUpdatesProperly()
        {
            var root = new ReactiveType0();
            var child = new ReactiveType1();
            var person = new ReactivePerson();

            root.ChildReactiveType1 = child;
            child.ChildReactivePerson = person;
            person.Name = "Jim";
            //child.Name = "Bob";

            Assert.AreEqual(3, root.Updates);
        }