Esempio n. 1
0
        public static void ThrowWhenNonStatic()
        {
            Type type = typeof(MockNonStaticTestSuite);

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