Catel.Fody.Tests.ModelBaseFacts.IgnoresChangeNotificationsWithoutRightSignature C# (CSharp) Method

IgnoresChangeNotificationsWithoutRightSignature() private method

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