Esempio n. 1
0
 public void TestGenericSetupDefaultPositive()
 {
     Mock.SetupDefault(() => TestStaticClass.TestVoidMethodWithoutParametersThrowsException(), () =>
     {
         TestStaticClass.TestVoidMethodWithoutParametersThrowsException();
     });
 }
Esempio n. 2
0
 public void TestSetupDefaultPositive()
 {
     Mock.SetupDefault(typeof(TestStaticClass), nameof(TestStaticClass.TestVoidMethodWithoutParametersThrowsException), () =>
     {
         TestStaticClass.TestVoidMethodWithoutParametersThrowsException();
     });
 }