Ejemplo n.º 1
0
 private static List<Employee> GetEmployees()
 {
     var emp = new Employee();
     var cont = new Contractor();
     var everyone = new List<Employee> { emp, cont };
     return everyone;
 }
Ejemplo n.º 2
0
 public void SalaryContractorTest()
 {
     //arrage
     int hours = 55;
     int wage = 70;
     int salary = hours*wage;
     Contractor c= new Contractor();
     string expectedResponse = String.Format("\nThis HAPPY CONTRACTOR worked {0} hrs. " +
                       "Paid for {0} hrs at $ {1}" +
                       "/hr = ${2} ", hours, wage, salary);
     //act
     string response = c.CalculateWeeklySalary(hours, wage);
     //assert
     Assert.AreEqual(response, expectedResponse);
 }