public void NurseDrawsBlood() { Nurse nurse = new Nurse(); Patient patient = new Patient(); nurse.DrawBlood(patient); Assert.Equal(80, patient.BloodLevel); }
public void Nurse_Should_Decrease_BloodLevel_By_2() { Nurse nurse = new Nurse(); patient.BloodLevel = 20; nurse.DrawBlood(patient); Assert.Equal(18, patient.BloodLevel); }
public void DrawBlood_Blood_Level_Decreases_by_10() { //Arrange var patient = new Patient(""); var nurse = new Nurse("", 4, 1); var testBloodLvl = patient.BloodLevel; //Act nurse.DrawBlood(patient); //Assert Assert.Equal(testBloodLvl - 10, patient.BloodLevel); }
public void Does_DrawBlood_Reduce_Patient_BloodLevel_By_1() { //arrange Nurse myNurse = new Nurse(); Patient myPatient = new Patient(); myPatient.BloodLevel = 10; //act myNurse.DrawBlood(myPatient); //assert Assert.Equal(9, myPatient.BloodLevel); }
public void Draw_Blood_Does_Blood_Level_Reduce_by_5() { //Arrange Nurse firstNurse = new Nurse(); Patient myPatient = new Patient(1, "Sam"); //Act var currentBloodLevel = myPatient.BloodLevel; firstNurse.DrawBlood(myPatient); //Assert Assert.Equal(currentBloodLevel - 5, myPatient.BloodLevel); }