Example #1
0
        public virtual void TestExceptionInTearDown()
        {
            var tests = new ReflectionTestSuiteBuilder(typeof(RunsWithExceptionInTearDown
                                                              )).GetEnumerator();
            var test = (ITest)Iterators.Next(tests);

            FrameworkTestCase.RunTestAndExpect(test, 1);
        }
Example #2
0
            public void Run()
            {
                IEnumerator tests = new ReflectionTestSuiteBuilder(typeof(RunsLifeCycle)).GetEnumerator
                                        ();
                ITest test = (ITest)Iterators.Next(tests);

                FrameworkTestCase.RunTestAndExpect(test, 1);
            }
        public virtual void TestExceptions()
        {
            IEnumerator tests = new ReflectionTestSuiteBuilder(typeof(ExceptionInTearDownDoesNotShadowTestCase.RunsWithExceptions
                                                                      )).GetEnumerator();
            ITest test = (ITest)Iterators.Next(tests);

            FrameworkTestCase.RunTestAndExpect(test, 1);
        }