Example #1
0
        public TestSuite VerifiedSuite()
        {
            TestSuite        suite = new TestSuite("VerifiedSuite");
            TestCase         tc    = TestCases.Case("Verify that tests returns hello world", new TestDelegate(this.TestReturnHelloWorld), null);
            VerifiedTestCase vtc   = TestCases.Verified(tc, this.helloWorld);

            suite.Add(vtc);
            return(suite);
        }
Example #2
0
        public TestSuite ExpectedExceptionSuite()
        {
            TestSuite suite = new TestSuite("ExpectedExceptionSuite");

            ITestCase tc  = TestCases.Case("Verfiy that tests throw", new TestDelegate(this.ThrowMe));
            ITestCase etc = TestCases.ExpectedException(tc, typeof(Exception));

            suite.Add(etc);
            return(suite);
        }