public void JobLocationNoTitleTest() { //arrnge EmployeeClass myEmployee = new EmployeeClass(12); //act string jobLocation = myEmployee.JobLocation(); //assert //check if correct location is returned StringAssert.Equals("New York", jobLocation); }
public void JobLocationTitleTest() { //arrnge EmployeeClass myEmployee = new EmployeeClass(12, "Yulia Svit", "Manager"); //act string jobLocation = myEmployee.JobLocation(); //assert //check if correct location is returned StringAssert.Equals("Boston", jobLocation); }
public void JobLocationOverwrittenTitleTest() { //arrnge EmployeeClass myEmployee = new EmployeeClass(12); myEmployee.JobTitle = "Staff"; //act string jobLocation = myEmployee.JobLocation(); //assert //check if correct location is returned StringAssert.Equals("Boston", jobLocation); }