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