public void AddToList_ShouldFindByTitle() { // -- Arrange var description = "Some custom description"; var commandList = new string[] { "3", "Title", description, "8", "5", "200", "3", "2", "Title", "6" }; var console = new MockConsole(commandList); var ui = new ProgramUI(console); // -- Act ui.StartRun(); Console.WriteLine(console.Output); // -- Assert Assert.IsTrue(console.Output.Contains(description)); }
public void GetList_OutputShouldContainStreamingContent() { // -- Arrange // Get the commands we want to run // Initialize our Console and UI var commandList = new List <string>() { "1", "6" }; var console = new MockConsole(commandList); var program = new ProgramUI(console); // -- Act // Run the application program.StartRun(); Console.WriteLine(console.Output); // -- Assert // Check for specified content in Output Assert.IsTrue(console.Output.Contains("Hello Kitty Island Adventure")); }