public void ShouldInvokeMock() { FooWithDefault x = new FooWithDefault(); MockRepository repository = new MockRepository(); MyEventHandler mockDelegate = repository.CreateMock<MyEventHandler>(); mockDelegate.Invoke(x, "foo"); repository.ReplayAll(); x.handler += mockDelegate; x.Notify(); repository.VerifyAll(); }
public void ShouldNotBlowUp() { FooWithDefault x = new FooWithDefault(); x.Notify(); }