public void AddPatients() { Simulation s = new Simulation(); s.AddPatients(10); Assert.AreEqual(s.AllPatients.Count, 10); }
public void ManagePatients() { Simulation s = new Simulation(); s.AddRoomsAndBeds(new int[] { 5, 2 }, new int[] { 2, 2 }, new int[] { 6, 2 }, new int[] { 4, 2 }); s.AddPatients(10); s.Start(); Assert.AreNotEqual(s.PatientsToNavigate, 0); foreach (Patient p in s.PatientsToNavigate) { Assert.AreNotEqual(p.Bed, null); Assert.AreEqual(p.Bed.Busy, true); } s.Running = false; }