public void BoardColumnTest1() { Dictionary <string, int> letters = new Dictionary <string, int>() { { "a", 1 }, { "b", 4 }, { "c", 4 }, { "d", 2 }, { "e", 1 }, { "f", 4 }, { "g", 3 }, { "h", 3 }, { "i", 1 }, { "j", 10 }, { "k", 5 }, { "l", 2 }, { "m", 4 }, { "n", 2 }, { "o", 1 }, { "p", 4 }, { "q", 10 }, { "r", 1 }, { "s", 1 }, { "t", 1 }, { "u", 2 }, { "v", 5 }, { "w", 4 }, { "x", 8 }, { "y", 3 }, { "z", 10 }, }; string[,] baseBoard = new string[15, 15]; string[] lines = System.IO.File.ReadAllLines("WWFDictionary.txt"); List <string> dictionary = new List <string>(); foreach (string s in lines) { dictionary.Add(s); } ScrabbleBoard board = new ScrabbleBoard(baseBoard, dictionary, letters); board.PlaceLetter("a", 4, 5); board.PlaceLetter("s", 4, 4); board.PlaceLetter("d", 4, 3); board.PlaceLetter("f", 4, 2); Assert.IsTrue(board.CheckRowOrCol(5, false, board)); Assert.IsTrue(board.CheckRowOrCol(4, false, board)); Assert.IsTrue(board.CheckRowOrCol(3, false, board)); Assert.IsTrue(board.CheckRowOrCol(2, false, board)); Assert.IsFalse(board.CheckRowOrCol(4, true, board)); }