public void MoveTest_MovingUPRepeat() { elevator.Position = new Vector2(0, 0); elevator.Dimension = new Vector2(1, 2); elevator.CurrentFloor = (int)elevator.Position.Y; elevator.State = Elevator.ElevatorState.MOVING; Customer customer = new Customer(); elevator.Attach(customer); customer.Position = new Vector2(0.1f, 0); customer.Destination = new Vector2(0, 1); customer.Route = new Stack <Node>(); customer.Route.Push(new Node(customer.Destination)); customer.Update(elevator); elevator.InitWaitingFloors(); while (elevator.CurrentFloor != 1) { elevator.Move(); } Assert.IsTrue(elevator.CurrentFloor > 0); }