Exemple #1
0
        public void IsValid_WithValidInput_Passes(string validEmployeeIdString, int year, int month, int day)
        {
            EmployeeID employeeId = EmployeeID.Parse(validEmployeeIdString);
            DateTime   dateTime   = new DateTime(year, month, day);

            Expect(EmployeeID.IsValid(employeeId, dateTime), Is.True);
        }
Exemple #2
0
        public void IsValid_WithInValidInput_Fails(string validEmployeeIdString, int year, int month, int day)
        {
            //TODO: needs more work
            EmployeeID employeeId = EmployeeID.Parse(validEmployeeIdString);
            DateTime   dateTime   = new DateTime(year, month, day);

            Expect(EmployeeID.IsValid(employeeId, dateTime), Is.False);
        }