예제 #1
0
 public void TestSetupDefaultTestMethodThrowsExceptionNegative()
 {
     Assert.Throws <Exception>(() => Mock.SetupDefault(typeof(TestStaticClass), nameof(TestStaticClass.TestMethodThrowsException), () =>
     {
         TestStaticClass.TestMethodThrowsException();
     }));
 }
예제 #2
0
 public void TestGenericSetupDefaultTestMethodThrowsExceptionNegative()
 {
     Assert.Throws <Exception>(() => Mock.SetupDefault(() => TestStaticClass.TestMethodThrowsException(), () =>
     {
         TestStaticClass.TestMethodThrowsException();
     }));
 }