コード例 #1
0
        public void TestToString()
        {
            List <string> lines = new List <string>();

            lines.Add("A,B,C");
            lines.Add("D,E,F");
            lines.Add("G,H,I");

            _board = new WordSearchBoard(lines);

            Assert.AreEqual("A,B,C\nD,E,F\nG,H,I", _board.ToString());
        }
 /// <summary>
 /// Overrides the ToString method to return a string representation of the board
 /// </summary>
 /// <returns>Returns string representation of the board</returns>
 public override string ToString()
 {
     return _board.ToString();
 }