public string MoveSonda(Sonda sonda, string moves = "", Position limit = null) { if (sonda == null) { return(string.Empty); } if (string.IsNullOrWhiteSpace(moves)) { return(sonda.ToString()); } foreach (var move in moves) { sonda.Move(move); } return(sonda.ToString(limit)); }
public void Move_R(EFront front, string result) { // Arrange var sonda = new Sonda(front: front); // Act sonda.Move('R'); // Assert Assert.Equal(result, sonda.ToString()); }