public void PointsToReverseTest() { Disc[,] board = "----\n-OX-\n-XO-\n----".BoardFromString(); var pointSet = ReversiGame.PointsToReverse(board, new Point(0, 2), Disc.Black); Assert.AreEqual(1, pointSet.Count); Assert.IsTrue(pointSet.Contains(new Point(1, 2))); }
public void PointsToReverseTest2() { Disc[,] board = "------\n--XO--\n---O--\n--XX--\n------\n------".BoardFromString(); var pointSet = ReversiGame.PointsToReverse(board, new Point(1, 4), Disc.White); Assert.AreEqual(2, pointSet.Count); Assert.IsTrue(pointSet.Contains(new Point(1, 3))); Assert.IsTrue(pointSet.Contains(new Point(2, 3))); }