public void TestWithPartialWordAgainstEastEdgeReturnNull() { Coordinate coordinate = new Coordinate(1, 1); string word = "EDA"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckEast(_board, coordinate, word)); }
public void TestWithoutWordToTheEastReturnNull() { Coordinate coordinate = new Coordinate(1, 1); string word = "AB"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckEast(_board, coordinate, word)); }
public void TestWithCoordinateOnEastEdgeReturnNull() { Coordinate coordinate = new Coordinate(0, 1); string word = "DBC"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckEast(_board, coordinate, word)); }
public void TestWithWordToTheEastReturnCoordinates() { Coordinate coordinate = new Coordinate(1, 1); string word = "EF"; _searcher = new WordSearcher(); _results = _searcher.CheckEast(_board, coordinate, word); Assert.AreEqual(2, _results.Count); Assert.AreEqual(1, _results[0].X); Assert.AreEqual(1, _results[0].Y); Assert.AreEqual(2, _results[1].X); Assert.AreEqual(1, _results[1].Y); }