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();
        }
Пример #2
0
        public static void EventTriggeredTest2()
        {
            EventsVerifier eventsVerifier = new EventsVerifier();

            TestView view = new TestView();

            eventsVerifier.Expect(view, "Load", null, null);

            view.LoadEventTrigger(null, null);

            eventsVerifier.Verify();
        }