public void EventFiringWithEventsVerifier() { EventsVerifier verifier = new EventsVerifier(); SomeView view = new SomeView(); verifier.Expect(view, "Load", null, EventArgs.Empty); view.TriggerLoad(null, EventArgs.Empty); verifier.Verify(); }
public static void EventTriggeredTest2() { EventsVerifier eventsVerifier = new EventsVerifier(); TestView view = new TestView(); eventsVerifier.Expect(view, "Load", null, null); view.LoadEventTrigger(null, null); eventsVerifier.Verify(); }