Пример #1
0
 private static void ShowProgress(CommandExpects testItem)
 {
     if (_quietMode)
     {
         Console.CursorLeft = 0;
         Console.Write($"Test line: {testItem.LineNo:D5}");
     }
 }
Пример #2
0
        private static string CreateFailureMessage(string lastCommand, CommandExpects testItem, string lastOutput)
        {
            var failureMessage =
                $"Last command ('{lastCommand}') expected response from line [{testItem.LineNo}] ('{testItem.Expectation}')!";

            if (_quietMode)
            {
                failureMessage += $"\nOutput was:\n{lastOutput}";
            }
            return(failureMessage);
        }