Exemple #1
0
        public void TestIlligalMove()
        {
            using (StringWriter strWriter = new StringWriter())
            {
                Console.SetOut(strWriter);
                GameMessages.IlligalMove();

                string expected = string.Format("Illegal move!{0}{0}", Environment.NewLine);

                Assert.AreEqual(expected, strWriter.ToString());
            }
        }