示例#1
0
        public static void ThrowWhenNonStatic()
        {
            Type type = typeof(MockNonStaticTestSuite);

            Assert(RimTest.CheckTestSuiteIsStatic(type)).To.Be.False();
            AssertFunc(() => RimTest.IsValidTestSuite(type)).To.Throw();
        }
示例#2
0
 public static void ThrowWhenInvalid()
 {
     AssertFunc(() => RimTest.IsValidTestSuite(typeof(MockNonStaticTestSuite))).To.Throw();
     AssertFunc(() => RimTest.IsValidTestSuite(typeof(MockNonPublicTestSuite))).To.Throw();
 }
示例#3
0
 public static void IsValidTestSuiteThrowWhenNull()
 {
     AssertFunc(() => RimTest.IsValidTestSuite(null)).To.Throw();
 }
示例#4
0
 public static void PassWhenValid()
 {
     AssertFunc(() => RimTest.IsValidTestSuite(typeof(MockValidTestSuite))).Not.To.Throw();
 }