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

            Assert(RimTest.CheckTestSuiteIsStatic(type)).To.Be.False();
            AssertFunc(() => RimTest.IsValidTestSuite(type)).To.Throw();
        }
Example #2
0
 public static void PassWhenStatic()
 {
     Assert(RimTest.CheckTestSuiteIsStatic(typeof(MockValidTestSuite))).To.Be.True();
 }
Example #3
0
 public static void ChecksAreFalseWhenNull()
 {
     Assert(RimTest.CheckTestSuiteIsPublic(null)).To.Be.False();
     Assert(RimTest.CheckTestSuiteIsStatic(null)).To.Be.False();
 }