示例#1
0
 public void TestThrowsTestVoidMethodWithParameters()
 {
     Mock.Setup(() => TestStaticClass.TestVoidMethodWithParameters(1), () =>
     {
         Assert.Throws <Exception>(() => TestStaticClass.TestVoidMethodWithParameters(1));
     }).Throws <Exception>();
 }