public static void When_I_set_an_AutoProperty_that_has_a_CalculatedProperty_from_a_NestedDependentMethod()
        {
            var notify = new NotifyCalculatedProperty();
            var propertiesThatChanged = notify.ObservePropertyChanges();

            notify.AutoProperty = 1.0M;

            "it should notify that both the AutoProperty and the CalculatedProperty have changed"
                .AssertThat(propertiesThatChanged, Is.EquivalentTo(new[] { "AutoProperty", "CalculatedProperty" }));
        }
Пример #2
0
        public static void When_I_set_an_AutoProperty_that_has_a_CalculatedProperty_from_a_NestedDependentMethod()
        {
            var notify = new NotifyCalculatedProperty();
            var propertiesThatChanged = notify.ObservePropertyChanges();

            notify.AutoProperty = 1.0M;

            "it should notify that both the AutoProperty and the CalculatedProperty have changed"
            .AssertThat(propertiesThatChanged, Is.EquivalentTo(new[] { "AutoProperty", "CalculatedProperty" }));
        }