コード例 #1
0
 public void ThrowsRequiresExceptionWithMessage()
 {
     Expect.Throw <InvalidOperationException>("Needs a message.",
                                              () => { throw new InvalidOperationException(); });
 }
コード例 #2
0
 public void ThrowsRequiresException()
 {
     Expect.Throw <InvalidOperationException>(() => { });
 }