public void Can_Escape_Field() { // Arrange var runner = new TurtleRunner(Board); // Act var result = runner.Run(AllMoves[2]); // Assert Assert.AreEqual(RunResult.Exit, result); }
public void Can_Hit_Mine() { // Arrange var runner = new TurtleRunner(Board); // Act var result = runner.Run(AllMoves[0]); // Assert Assert.AreEqual(RunResult.MineHit, result); }
public void Can_Get_Stuck_In_Field() { // Arrange var runner = new TurtleRunner(Board); // Act var result = runner.Run(AllMoves[1]); // Assert Assert.AreEqual(RunResult.NotCleared, result); }
static void Main(string[] args) { TurtleRunner.Run(args[0], args.Skip(1).ToArray()); }