public static void When_I_set_a_NonPublicAutoProperty()
        {
            var notify = new NonPublicAutoProperty();
            var propertiesThatChanged = notify.ObservePropertyChanges();

            notify.SetNonPublicAutoProperty();

            "it should NOT notify that a property changed"
                .AssertThat(propertiesThatChanged, Is.Empty);
        }
Exemple #2
0
        public static void When_I_set_a_NonPublicAutoProperty()
        {
            var notify = new NonPublicAutoProperty();
            var propertiesThatChanged = notify.ObservePropertyChanges();

            notify.SetNonPublicAutoProperty();

            "it should NOT notify that a property changed"
            .AssertThat(propertiesThatChanged, Is.Empty);
        }