Exemplo n.º 1
0
        private static bool RunTestFile(TestVm testFile)
        {
            testFile.Run(RecoveryAlgorithm.Smart);

            switch (testFile.TestState)
            {
            case TestState.Skipped:
                ContinuePrint("skipped.", ConsoleColor.Yellow);
                break;

            case TestState.Failure:
                ContinuePrint("failed!", ConsoleColor.Red);
                Indent();
                Diff(testFile);
                Unindent();

                return(true);

            case TestState.Ignored:
                ContinuePrint("ignored.", ConsoleColor.Yellow);
                break;

            case TestState.Inconclusive:
                ContinuePrint("inconclusive.", ConsoleColor.Yellow);
                break;

            case TestState.Success:
                ContinuePrint("passed.", ConsoleColor.Green);
                break;
            }

            return(false);
        }
Exemplo n.º 2
0
        private void RunTest(TestVm test)
        {
            test.Run();

            ShowDiff(test);
        }