public void CheckValidateForValidInput() { DatesOrderValidation validation = new DatesOrderValidation(_validInput); try { validation.Validate(); } catch { Assert.Fail(); } }
public void CheckValidateForInvalidInput() { DatesOrderValidation validation = new DatesOrderValidation(_invalidInput); Assert.ThrowsException <ValidationException>(() => validation.Validate()); }