private static void DrawMap(char[][] charMap) { PowerShellColors.WrapPowerShellColors(); int mapHeight = charMap.Length; for (int i = 0; i < mapHeight; i += 1) { int mapWidth = charMap[i].Length; for (int j = 0; j < mapWidth; j += 1) { ConsolColours.Write(charMap, i, j); } Colorful.Console.WriteLine(); } }
private static void PrintTestOutput(string[] input, int indices, string actualOutput) { PowerShellColors.WrapPowerShellColors(); Colorful.Console.WriteLineFormatted(format: "Input array: '[{0}]',", styledColor: PowerShellColors.Colors[6], defaultColor: PowerShellColors.Colors[14], arg0: string.Join(", ", input)); Colorful.Console.WriteLineFormatted(format: "input index: '{0}',", styledColor: PowerShellColors.Colors[6], defaultColor: PowerShellColors.Colors[14], arg0: indices); Colorful.Console.WriteLineFormatted(format: "output: '{0}'.", styledColor: PowerShellColors.Colors[9], defaultColor: PowerShellColors.Colors[14], arg0: actualOutput); }