public void SetSocialInsuranceNumberTestInvalidTooLarge() { Employee employee = new Employee(); bool retVal = employee.SetSocialInsuranceNumber(1112345678); Assert.IsFalse(retVal); Assert.AreEqual(employee.GetSocialInsuranceNumber(), 0); }
public void SetSocialInsuranceNumberTestValid() { Employee employee = new Employee(); bool retVal = employee.SetSocialInsuranceNumber(123456789); Assert.IsTrue(retVal); Assert.AreEqual(employee.GetSocialInsuranceNumber(), 123456789); }