public void TestTotalHorizontalPossibleMoves() { int[,] obstacles = new int[, ] { { 5, 5 }, { 4, 2 }, { 2, 3 } }; foreach (int item in obstacles) { System.Console.WriteLine(item); } int totalMoves = QueensAttackProblem.GetTotalHorizontalPossibleMoves(4, 4, 4, obstacles); Assert.AreEqual(totalMoves, 3); //totalMoves = QueensAttackProblem.GetTotalHorizontalPossibleMoves(4, 4, new int[][] { }); //Assert.AreEqual(totalMoves, 3); }
public void TestQueensAttackOne() { int totalMoves = QueensAttackProblem.QueensAttack(4, 0, 4, 4, new int[][] { }); Assert.AreEqual(totalMoves, 9); }