[Test] public void CreateGenericProxy() { InvocationHandlerImpl handler = new InvocationHandlerImpl(); ClassGenerator cg = new ClassGenerator(typeof(IThingy), handler); IThingy thingy = (IThingy)cg.Generate(); handler.expectedMethodName = "NoArgs"; thingy.NoArgs(); Assertion.Assert("Should have been called ", handler.wasCalled); }
[Test] public void CallMethodIsCalled() { mock.Expect("NoArgs"); thingy.NoArgs(); mock.Verify(); }