Пример #1
0
 [Test][ExpectedException(typeof(System.IO.IOException))] public void CallThrowingException()
 {
     mock.ExpectAndThrow("myMethod", new System.IO.IOException());
     mock.Invoke("myMethod");
 }