public void TestWithPartialWordAgainstWestEdgeReturnNull() { Coordinate coordinate = new Coordinate(1, 1); string word = "EDJ"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckWest(_board, coordinate, word)); }
public void TestWithoutWordToTheWestReturnNull() { Coordinate coordinate = new Coordinate(1, 1); string word = "AB"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckWest(_board, coordinate, word)); }
public void TestWithCoordinateOnWestEdgeReturnNull() { Coordinate coordinate = new Coordinate(0, 1); string word = "DEB"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckWest(_board, coordinate, word)); }
public void TestWithWordToTheWestReturnCoordinates() { Coordinate coordinate = new Coordinate(1, 1); string word = "ED"; _searcher = new WordSearcher(); _results = _searcher.CheckWest(_board, coordinate, word); Assert.AreEqual(2, _results.Count); Assert.AreEqual(1, _results[0].X); Assert.AreEqual(1, _results[0].Y); Assert.AreEqual(0, _results[1].X); Assert.AreEqual(1, _results[1].Y); }