Пример #1
0
        public void DoctorShouldPrescribeRightTreatment()
        {
            // arrange
            IDoctor testDoctor = new Orthopedist();

            // act
            Treatment prescribedTreatment = testDoctor.PrescribeTreatment(new Diagnosis());

            // assert
            Assert.AreSame(new Treatment() , prescribedTreatment);
        }
Пример #2
0
        public void DoctorShouldReturnRightDiagnosis()
        {
            // arrange
            IDoctor testDoctor = new Orthopedist();
            IPatient testPatient = new Patient();
            testPatient.PatientComplaint.Symptoms.Add(Symptom.Headache);

            // act
            Diagnosis returnedDiagnosis = testDoctor.Diagnosticate(testPatient.PatientComplaint);

            // assert
            Assert.AreSame(new Diagnosis() , returnedDiagnosis);
        }
Пример #3
0
        public void DoctorShouldReturnRightDiagnosis()
        {
            // arrange
            IDoctor  testDoctor  = new Orthopedist();
            IPatient testPatient = new Patient();

            testPatient.PatientComplaint.Symptoms.Add(Symptom.Headache);

            // act
            Diagnosis returnedDiagnosis = testDoctor.Diagnosticate(testPatient.PatientComplaint);

            // assert
            Assert.AreSame(new Diagnosis(), returnedDiagnosis);
        }