Esempio n. 1
0
        public void DisplayEndShouldPrintInTheConsoleProperMessage()
        {
            using (StringWriter sw = new StringWriter())
            {
                Console.SetOut(sw);
                int    openCells = 0;
                String message   = "End Message";
                manager.DisplayEnd(message, openCells);

                string expected = string.Format("{0}", message);
                Assert.AreEqual <string>(expected, sw.ToString(), "DisplayEnd method printed inscorrect message.");
            }
        }