Example #1
0
        public void RoverTurnLeft_ShouldReturnTheCorrespondentOrientationDependingHisActualOrientation(MarsOrientations roverActualOrientation, MarsOrientations roverFinalOrientation)
        {
            var stub = new RoverSpaceVehicle(
                _turnLeftAlgorithm
                , _turnRightAlgorithm
                , _advanceAlgorithm
                , roverActualOrientation);

            stub.PerformTurnLeft();

            Assert.Equal(roverFinalOrientation, stub._roverOrientationsInMars);
        }