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