예제 #1
0
        public void cannot_move_rover()
        {
            var rover = new Rover(new Coordinate(0, 0), CameraDirection.West);
            rover.OnMoving(c => false);

            Assert.Throws<RoverCannotMoveException>(() => rover.SendInstruction(RoverInstruction.M));
        }