public void TestingValidateLongingString_ParttimeEmployee_Exception() { bool status = false; string[] testData = new string[7] { "qwer", "drfdgf", "246 454 284", "1997/3/14", "2000/12/12", "a/10/9", "45.34" //if i change the price then it will break note to self }; try { ParttimeEmployee testEmployee = new ParttimeEmployee(testData); status = testEmployee.SuccessLogString(); } catch (EmployeeException eee) { string errors = eee.GetError(); } Assert.AreEqual(false, status); }
public void TestingValidateLongingString_ParttimeEmployee_Normal() { bool status = false; string[] testData = new string[7] { "qwer", "drfdgf", "246 454 284", "1997/3/14", "2000/12/12", "2013/10/9", "45.34" }; try { ParttimeEmployee testEmployee = new ParttimeEmployee(testData); status = testEmployee.SuccessLogString(); } catch (EmployeeException eee) { string errors = eee.GetError(); } Assert.AreEqual(true, status); }