Catel.Test.Data.ModelBaseTest.NotifyPropertyChangingPreventsSetValue C# (CSharp) Méthode

NotifyPropertyChangingPreventsSetValue() private méthode

private NotifyPropertyChangingPreventsSetValue ( ) : void
Résultat void
        public void NotifyPropertyChangingPreventsSetValue()
        {
            var changingTest = new ChangingTest();

            Assert.AreEqual("non-cancallable", changingTest.NonCancallable);
            Assert.AreEqual("cancallable", changingTest.Cancallable);

            changingTest.NonCancallable = "test";
            changingTest.Cancallable = "test";

            Assert.AreEqual("test", changingTest.NonCancallable);
            Assert.AreEqual("cancallable", changingTest.Cancallable);
        }
        #endregion
ModelBaseTest