public void PriorityCall_DoesNotAddPatientsPresent() { IEmergencyCentral emergencyCentral = new EmergencyCentral(); IPatient patient = new Patient(0, 123456789); emergencyCentral.PriorityCall(patient); Assert.AreEqual(1, emergencyCentral.AmountOfPatientsInPriorityQueue()); emergencyCentral.PriorityCall(patient); Assert.AreEqual(1, emergencyCentral.AmountOfPatientsInPriorityQueue()); }
public void AmountOfPatientsInPriorityQueue_DontReturnNIException() { IEmergencyCentral emergencyCentral = new EmergencyCentral(); int test; Assert.DoesNotThrow(() => test = emergencyCentral.AmountOfPatientsInPriorityQueue()); }
public void PriorityCall_ReturnsFalseIfPatientExists() { IEmergencyCentral emergencyCentral = new EmergencyCentral(); IPatient patient = new Patient(0, 123456789); emergencyCentral.PriorityCall(patient); Assert.AreEqual(1, emergencyCentral.AmountOfPatientsInPriorityQueue()); Assert.False(emergencyCentral.PriorityCall(patient)); }
public void AmountOfPatientsInPriorityQueue_ReturnsZero() { IEmergencyCentral emergencyCentral = new EmergencyCentral(); Assert.AreEqual(0, emergencyCentral.AmountOfPatientsInPriorityQueue()); }