Catel.Test.Data.ModelBaseTest.NotifyPropertyChangingPreventsSetValue C# (CSharp) 메소드

NotifyPropertyChangingPreventsSetValue() 개인적인 메소드

private NotifyPropertyChangingPreventsSetValue ( ) : void
리턴 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