Esempio 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;
    }
Esempio n. 2
0
        private void RunTest(TestVm test)
        {
            test.Run();

              ShowDiff(test);
        }
Esempio n. 3
0
    private void RunTest(TestVm test)
    {
      test.Run(recoveryAlgorithm: GetRecoveryAlgorithm());

      ShowDiff(test);
    }