Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public void ShouldNotBlowUp()
 {
     FooWithDefault x = new FooWithDefault();
     x.Notify();
 }