예제 #1
0
        public void CarePatientMethodTest()
        {
            Patient newPatient = new Patient("Don");
            Doctor  newDoctor  = new Doctor("DrDr", 123, "cardio");

            newDoctor.CarePatient(newPatient);

            Assert.Equal(11, newPatient.HealthLevel);
        }
        public void Doctor_Should_Increase_HealthLevel_By_5()
        {
            Doctor nurse = new Doctor();

            patient.HealthLevel = 10;

            nurse.CarePatient(patient);

            Assert.Equal(5, patient.HealthLevel);
        }