Esempio n. 1
0
 public static void ThrowWhenInvalid()
 {
     AssertFunc(() => RimTest.IsValidTest(GetMethodInfo("NonParameterFreeTest"))).To.Throw();
     AssertFunc(() => RimTest.IsValidTest(GetMethodInfo("NonVoidReturnTest"))).To.Throw();
     AssertFunc(() => RimTest.IsValidTest(GetMethodInfo("NonStaticTest"))).To.Throw();
     AssertFunc(() => RimTest.IsValidTest(GetMethodInfo("NonPublicTest"))).To.Throw();
 }
Esempio n. 2
0
 public static void IsValidTestThrowWhenNull()
 {
     AssertFunc(() => RimTest.IsValidTest(null)).To.Throw();
 }
Esempio n. 3
0
 public static void PassWhenValid()
 {
     AssertFunc(delegate { RimTest.IsValidTest(GetMethodInfo("ValidTest")); }).Not.To.Throw();
 }