Exemple #1
0
 private void ProcessMoveInstruction() => _location.ChangeLocation(_direction.CurrentDirection);
Exemple #2
0
 public void Location_GIVENChangeDirection_WHENIsNotValid_THENItShouldBeThrowsException()
 {
     CreatePlateau();
     _location.SetLocation(new Coordinate(1, 1));
     Assert.Throws <ArgumentOutOfRangeException>(() => _location.ChangeLocation((DirectionType)4));
 }