public static void ThrowWhenNonStatic() { Type type = typeof(MockNonStaticTestSuite); Assert(RimTest.CheckTestSuiteIsStatic(type)).To.Be.False(); AssertFunc(() => RimTest.IsValidTestSuite(type)).To.Throw(); }
public static void ThrowWhenInvalid() { AssertFunc(() => RimTest.IsValidTestSuite(typeof(MockNonStaticTestSuite))).To.Throw(); AssertFunc(() => RimTest.IsValidTestSuite(typeof(MockNonPublicTestSuite))).To.Throw(); }
public static void IsValidTestSuiteThrowWhenNull() { AssertFunc(() => RimTest.IsValidTestSuite(null)).To.Throw(); }
public static void PassWhenValid() { AssertFunc(() => RimTest.IsValidTestSuite(typeof(MockValidTestSuite))).Not.To.Throw(); }