public void ConvertCompassCharToPositon_ShouldBeInrangeInRangeOf_0_360_And_MutillesOf90(int expected, char input) { //Act var act = RoverUtils.ConvertCompassCharToPositon(input); // Assert Assert.Equal(expected, act); }
public Rover(int x, int y, char positionLetter) { if (x > 0 && y > 0 && InputValidator.IsInitialCommpassValid(positionLetter)) { X = x; Y = y; Position = RoverUtils.ConvertCompassCharToPositon(positionLetter); _waitindDirections = new Queue <char>(); } else { throw new ArgumentException(ErrorMessages.InvalidCompassMessageAndCoordinatsMessage, "compassAndDimension"); } }