public void ReadLineTest() { //Arranging Test string consoleInput = "Steve"; StringReader sr = new StringReader(consoleInput); //Setting Console Input to the String Reader Console.SetIn(sr); //Read the results of the what is input to the console through the string reader. string result = consoleTools.Read(); Assert.AreEqual(result, consoleInput); }