public static void TestKnightsTour() { var size = 10; var x = size / 2; var y = size / 2; var knightsTour = new KnightsTour(size); var customChessPiece = new ChessPiece(new List <Position> { new Position(1, 0), new Position(0, 1), new Position(-1, 0), new Position(0, -1) }); Debug.WriteLine("TESTING WITH SPRINGER:"); knightsTour.Run(x, y); knightsTour.PrintResult(); Debug.WriteLine("TESTING WITH CUSTOM CHESS PIECE:"); knightsTour.Run(customChessPiece, x, y); knightsTour.PrintResult(); }
public void HasMove() { var sut = new KnightsTour(); Assert.True(sut.GetTour()); }