Esempio n. 1
0
 public void SimpleMethodSample()
 {
     InterceptionRecorder.Clear();
     Target.MyMethod();
     Assert.IsTrue(InterceptionRecorder.OnEntryCalled);
     Assert.IsTrue(InterceptionRecorder.OnExitCalled);
     Assert.IsFalse(InterceptionRecorder.OnExceptionCalled);
 }
Esempio n. 2
0
 public void ExceptionMethodSample()
 {
     InterceptionRecorder.Clear();
     try
     {
         Target.MyExceptionMethod();
     }
     catch
     {
     }
     Assert.IsTrue(InterceptionRecorder.OnEntryCalled);
     Assert.IsFalse(InterceptionRecorder.OnExitCalled);
     Assert.IsTrue(InterceptionRecorder.OnExceptionCalled);
 }