private Position GetStartPoint(Plateau pateau, int x, int y, Enums.Direction direction) { ValidateStartPoint(pateau, x, y); var startingPoint = new Position { X = x, Y = y, Direction = direction }; return(startingPoint); }
public void CreateRouteStartingPoint_ConsoleInput_StartingPointHasBeenCreated(string startingPointParameters, int expectedX, int expectedY, Enums.Direction expectedDirection) { var startingPoint = _locationService.ParseStartPoint(_pateau, startingPointParameters); Assert.Equal(expectedX, startingPoint.X); Assert.Equal(expectedY, startingPoint.Y); Assert.Equal(expectedDirection, startingPoint.Direction); }