Пример #1
0
 private static void WriteImplementationStatusToConsole(ImplementationStatus status)
 {
     if (status.FailsCount > 0)
     {
         Console.ForegroundColor = ConsoleColor.Green;
         Console.WriteLine(TrimToConsole(status.Name + "fails on: " + string.Join(", ", status.FailsCount)));
         Console.ForegroundColor = ConsoleColor.Gray;
     }
     else
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine(status.Name + "write some test to kill it");
         Console.ForegroundColor = ConsoleColor.Gray;
     }
 }
Пример #2
0
        private static void WriteImplementationStatusToConsole(ImplementationStatus status)
        {
            var paddedName = status.Name.PadRight(20, ' ');

            if (status.Fails.Any())
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine(TrimToConsole(paddedName + "fails on: " + string.Join(", ", status.Fails)));
                Console.ForegroundColor = ConsoleColor.Gray;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine(paddedName + "write tests to kill it");
                Console.ForegroundColor = ConsoleColor.Gray;
            }
        }