Пример #1
0
        public void Can_Escape_Field()
        {
            // Arrange
            var runner = new TurtleRunner(Board);

            // Act
            var result = runner.Run(AllMoves[2]);

            // Assert
            Assert.AreEqual(RunResult.Exit, result);
        }
Пример #2
0
        public void Can_Hit_Mine()
        {
            // Arrange
            var runner = new TurtleRunner(Board);

            // Act
            var result = runner.Run(AllMoves[0]);

            // Assert
            Assert.AreEqual(RunResult.MineHit, result);
        }
Пример #3
0
        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);
        }
Пример #4
0
 static void Main(string[] args)
 {
     TurtleRunner.Run(args[0], args.Skip(1).ToArray());
 }