private static List<Employee> GetEmployees() { var emp = new Employee(); var cont = new Contractor(); var everyone = new List<Employee> { emp, cont }; return everyone; }
public void SalaryTest() { //arrage int hours = 55; int wage = 70; int salary = 40*wage; Employee e = new Employee(); string expectedResponse= String.Format("This employee is angry because he worked for {0} hrs." + "But got paid for 40 hrs at {1}/hrs=$ {2} salary.", hours, wage, salary); //act string response = e.CalculateWeeklySalary(hours, wage); //assert Assert.AreEqual(response, expectedResponse); }