Catel.Fody.Tests.ModelBaseFacts.IgnoresChangeNotificationsWithoutRightSignature C# (CSharp) Метод

IgnoresChangeNotificationsWithoutRightSignature() приватный Метод

private IgnoresChangeNotificationsWithoutRightSignature ( ) : void
Результат void
        public void IgnoresChangeNotificationsWithoutRightSignature()
        {
            var type = AssemblyWeaver.Assembly.GetType("Catel.Fody.TestAssembly.ModelBaseTest");
            var modelBase = (dynamic)Activator.CreateInstance(type);

            Assert.IsFalse(modelBase.OnLastNameChangedCalled);
            modelBase.LastName = "change";
            Assert.IsTrue(modelBase.OnLastNameChangedCalled);
        }