Пример #1
0
        public void Rover_WhenTurnRight_ThenTurnedRight()
        {
            //Given
            ILocation location = new Location(_defaultMarsArea, _defaultRoverLocation);
            IRover    rover    = new Rover(new NorthState(), location);

            //When
            rover.TurnRight();

            //Then
            rover.GetDirectionState().GetType().Equals(typeof(EastState));
        }