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); }
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); }