示例#1
0
        private void RunTestCase(TestCase /*!*/ testCase, ref int failedCount)
        {
            _testRuntime = new TestRuntime(this, testCase);

            Console.WriteLine("Executing {0}", testCase.Name);

            try {
                testCase.TestMethod();
            } catch (Exception e) {
                Console.Error.WriteLine(e);
                failedCount++;
            } finally {
                Snippets.SaveAndVerifyAssemblies();
            }
        }
示例#2
0
        private void RunTestCase(TestCase /*!*/ testCase)
        {
            _testRuntime = new TestRuntime(this, testCase);

            if (_verbose)
            {
                Console.WriteLine("Executing {0}", testCase.Name);
            }
            else
            {
                Console.Write('.');
            }

            try {
                testCase.TestMethod();
            } catch (Exception e) {
                PrintTestCaseFailed();
                _unexpectedExceptions.Add(new MutableTuple <string, Exception>(testCase.Name, e));
            } finally {
                Snippets.SaveAndVerifyAssemblies();
            }
        }
示例#3
0
        private void RunTestCase(TestCase/*!*/ testCase) {
            _testRuntime = new TestRuntime(this, testCase);

            Console.WriteLine("Executing {0}", testCase.Name);

            try {
                testCase.TestMethod();
            } catch (Exception e) {
                PrintTestCaseFailed();
                _unexpectedExceptions.Add(new Tuple<string, Exception>(testCase.Name, e));
            } finally {
                Snippets.SaveAndVerifyAssemblies();
            }
        }
示例#4
0
        private void RunTestCase(TestCase/*!*/ testCase, ref int failedCount) {
            _testRuntime = new TestRuntime(this, testCase);

            Console.WriteLine("Executing {0}", testCase.Name);

            try {
                testCase.TestMethod();
            } catch (Exception e) {
                Console.Error.WriteLine(e);
                failedCount++;
            } finally {
                Snippets.SaveAndVerifyAssemblies();
            }
        }
示例#5
0
文件: Driver.cs 项目: TerabyteX/main
        private void RunTestCase(TestCase/*!*/ testCase)
        {
            _testRuntime = new TestRuntime(this, testCase);

            if (_verbose) {
                Output.WriteLine("Executing {0}", testCase.Name);
            } else {
                Output.Write('.');
            }

            try {
                testCase.TestMethod();
            } catch (Exception e) {
                PrintTestCaseFailed();
                _unexpectedExceptions.Add(new MutableTuple<string, Exception>(testCase.Name, e));
            } finally {
            #if !WIN8
                Snippets.SaveAndVerifyAssemblies();
            #endif
            }
        }