示例#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();
 }
示例#2
0
 public static void IsValidTestThrowWhenNull()
 {
     AssertFunc(() => RimTest.IsValidTest(null)).To.Throw();
 }
示例#3
0
 public static void PassWhenValid()
 {
     AssertFunc(delegate { RimTest.IsValidTest(GetMethodInfo("ValidTest")); }).Not.To.Throw();
 }