public void TestWithPartialWordAgainstNorthEastEdgeReturnNull() { Coordinate coordinate = new Coordinate(0, 2); string word = "ECA"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckNorthEast(_board, coordinate, word)); }
public void TestWithoutWordToTheNorthEastReturnNull() { Coordinate coordinate = new Coordinate(1, 1); string word = "AB"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckNorthEast(_board, coordinate, word)); }
public void TestWithCoordinateOnNorthEastEdgeReturnNull() { Coordinate coordinate = new Coordinate(2, 0); string word = "ABC"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckNorthEast(_board, coordinate, word)); }
public void TestWithWordToTheNorthEastReturnCoordinates() { Coordinate coordinate = new Coordinate(1, 1); string word = "EC"; _searcher = new WordSearcher(); _results = _searcher.CheckNorthEast(_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(0, _results[1].Y); }