public void UnicastPoco() { var testingPoco = new TestingPoco(); testingPoco.MyEvent += TestingListener.StandardCallback; testingPoco.PropertyChanged += TestingListener.PropertyChangedCallback; EventApprovals.VerifyEvents(testingPoco); }
public void MulticastPoco() { var testingPoco = new TestingPoco(); testingPoco.MyEvent += TestingListener.AnotherStandardCallback; testingPoco.MyEvent += TestingListener.StandardCallback; EventApprovals.VerifyEvents(testingPoco); }
public void GetPocoEvents() { var testingPoco = new TestingPoco(); testingPoco.MyEvent += TestingListener.StandardCallback; testingPoco.PropertyChanged += TestingListener.PropertyChagnedHandler; Approvals.VerifyAll(testingPoco.GetPocoEvents(), string.Empty); }
public void GetEmptyPocoEvents() { var testingPoco = new TestingPoco(); Assert.AreEqual(0, testingPoco.GetPocoEvents().Count()); }