Ejemplo n.º 1
0
        public void NurseBeenPaid()
        {
            Nurse nurse = new Nurse();

            nurse.PaySalary();
            Assert.True(nurse.EmpBeenPaid);
        }
Ejemplo n.º 2
0
        public void Can_Pay_Nurse()
        {
            Nurse nurse = new Nurse(1, "Nurse", false, 2);

            nurse.PaySalary();

            Assert.True(nurse.IsPaid);
        }
Ejemplo n.º 3
0
        public void PaySalary_Changes_To_True()
        {
            //Arrange
            Nurse firstNurse = new Nurse(1, "FeelGood", 1);

            //Act
            firstNurse.PaySalary();

            //Assert
            Assert.True(firstNurse.HasBeenPaid);
        }