public void Update(GameTime gameTime) { _elevator.Update(gameTime); foreach (Person person in _persons) { person.Update(gameTime); } }
public void CallElevatorFrom0To1() { Elevator elevator = new Elevator(); elevator.CallElevator(1, ElevatorDirection.Both); for (int i = 0; i < 15; i++) { elevator.Update(1); } Assert.IsTrue(elevator.CurrentFloor == 1); }