public void shouldPrintStars_NoLoopsLinqsOrIfs() { string expectedOutput = "*****"; using (var consoleOutput = new ConsoleOutputUtil()) { starPrinter.PrintStarsOnlyString(5); Assert.AreEqual(expectedOutput, consoleOutput.GetOuput()); } }
public void shouldPrintStars_recursive() { string expectedOutput = "*****"; using (var consoleOutput = new ConsoleOutputUtil()) { starPrinter.PrintStarsRecursive(5); Assert.AreEqual(expectedOutput, consoleOutput.GetOuput()); } }