Example #1
0
        public void MoveForward_with_a_rover_orientation_to_West_should_decrease_one_more_in_the_position_X()
        {
            IRover rover = new Rover(new Position(1, 2, Orientation.West));
            rover.MoveForward();

            Assert.AreEqual(0, rover.Position.PositionX);
        }
Example #2
0
        public void MoveForward_with_a_rover_orientation_to_South_should_decrease_one_more_in_the_position_Y()
        {
            IRover rover = new Rover(new Position(1, 2, Orientation.South));
            rover.MoveForward();

            Assert.AreEqual(1, rover.Position.PositionY);
        }