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