public void ConsoleRendererTestDisplayMessage1() { string message = "command"; Console.SetOut(stringWriter); renderer.DisplayMessage(message); string expected = message; string actual = stringWriter.ToString().Trim(); Assert.AreEqual(expected, actual, "The message was displayed incorrectly!"); }