public void Date_Contract_Employee_Boundary_Validation()
 {
     ContractEmployee contractEmpObj = new ContractEmployee();
     bool status = false;
     status = contractEmpObj.ValidateDate("0001/01/01", Employee.dateType.CONTRACT_START);
     Assert.AreEqual(true, status);
 }
 public void Date_Contract_Employee_Exception_Validation()
 {
     ContractEmployee contractEmpObj = new ContractEmployee();
     bool status = false;
     status = contractEmpObj.ValidateDate("ERROR CONDITON", Employee.dateType.HIRE);
     Assert.AreEqual(true, status);
 }
 public void Date_Contract_Employee_Exception_Validation()
 {
     ContractEmployee contractEmpObj = new ContractEmployee();
     bool status = false;
     status = contractEmpObj.ValidateDate("ERROR/0/01", Employee.dateType.CONTRACT_START);
     Assert.AreEqual(false, status);
 }
        public void Date_Contract_Employee_Validation_Normal()
        {

            bool status = false;

            try
            {
                string[] ctEmpObj = new string[7] {
                "qwer",
                "drfdgf",
                "782 454 284",
                "1978/3/14",
                "2000/01/01",
                "2005/05/05",
                "45.34"
            };

                ContractEmployee contractEmpObj = new ContractEmployee(ctEmpObj);
                status = contractEmpObj.ValidateDate("2000/01/01", ContractEmployee.dateType.CONTRACT_START);
             
            }
            catch(EmployeeException e)
            {
                e.GetError(); 
            }

            Assert.AreEqual(true, status);

        }