public void ExpectNoEvent(object target, string eventName) { EventExpectation expectation = new EventExpectation(); expectation.ExpectNoFire(target, eventName); expectations.Add(expectation); }
public void Expect(object target, string eventName, params object[] args) { EventExpectation expectation = new EventExpectation(); expectation.ExpectEvent(target, eventName, args); expectations.Add(expectation); }