Esempio n. 1
0
        public void DisplayIntroShouldPrintInTheConsoleProperMessage()
        {
            using (StringWriter sw = new StringWriter())
            {
                Console.SetOut(sw);
                manager.DisplayIntro("Message");

                string expected = string.Format("{0}", "Message");
                Assert.AreEqual <string>(expected, sw.ToString(), "Printed intro message is not correct.");
            }
        }