Catel.Fody.Tests.ModelBaseFacts.IgnoresChangeNotificationsWithoutRightSignature C# (CSharp) Méthode

IgnoresChangeNotificationsWithoutRightSignature() private méthode

private IgnoresChangeNotificationsWithoutRightSignature ( ) : void
Résultat 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);
        }