public void TestWithPartialWordAgainstNorthEdgeReturnNull() { Coordinate coordinate = new Coordinate(1, 1); string word = "EBJ"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckNorth(_board, coordinate, word)); }
public void TestWithoutWordToTheNorthReturnNull() { Coordinate coordinate = new Coordinate(1, 1); string word = "AG"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckNorth(_board, coordinate, word)); }
public void TestWithCoordinateOnNorthEdgeReturnNull() { Coordinate coordinate = new Coordinate(1, 0); string word = "BAC"; _searcher = new WordSearcher(); Assert.IsNull(_searcher.CheckNorth(_board, coordinate, word)); }
public void TestWithWordToTheNorthReturnCoordinates() { Coordinate coordinate = new Coordinate(1, 1); string word = "EB"; _searcher = new WordSearcher(); _results = _searcher.CheckNorth(_board, coordinate, word); Assert.AreEqual(2, _results.Count); Assert.AreEqual(1, _results[0].X); Assert.AreEqual(1, _results[0].Y); Assert.AreEqual(1, _results[1].X); Assert.AreEqual(0, _results[1].Y); }