public void TestingElevator3() { //arrange ElevList elev = new ElevList(); elev.AddPerson(9, "up"); elev.AddElev(new Elevator(1, 6, 1, true, "down")); elev.AddElev(new Elevator(2, 13, 2, true, "down")); elev.AddElev(new Elevator(3, 6, null, false, null)); int expected = 3; //act int actual = elev.PickElevator(); //assert Assert.AreEqual(expected, actual); }
public void NewTestingElevator1() { //arrange ElevList elev = new ElevList(); elev.AddPerson(5, "down"); elev.AddElev(new Elevator(1, 7, 9, true, "up")); elev.AddElev(new Elevator(2, 1, 6, true, "up")); elev.AddElev(new Elevator(3, 8, null, false, null)); elev.AddElev(new Elevator(4, 9, 6, true, "down")); elev.AddElev(new Elevator(5, 9, 10, true, "up")); int expected = 4; //act int actual = elev.PickElevator(); //assert Assert.AreEqual(expected, actual); }
public void NewTestingElevator3() { //arrange ElevList elev = new ElevList(); elev.AddPerson(3, "up"); elev.AddElev(new Elevator(1, 7, 9, true, "up")); elev.AddElev(new Elevator(2, 1, 10, true, "up")); elev.AddElev(new Elevator(3, 6, 8, true, "up")); int expected = 2; //act int actual = elev.PickElevator(); //assert Assert.AreEqual(expected, actual); }