public void DateNotCorrected() { IReportValidationRule reportValidationRule = new ReportValidationRule(); ValidResult v1 = reportValidationRule.ValidateSinceDate(""); ValidResult v2 = reportValidationRule.ValidateToDate("sad"); Assert.IsTrue(v1.GetError().Length > 0); Assert.IsTrue(v2.GetError().Length > 0); }
public void DateCorrected() { IReportValidationRule reportValidationRule = new ReportValidationRule(); ValidResult v1 = reportValidationRule.ValidateSinceDate("01.12.2019"); ValidResult v2 = reportValidationRule.ValidateToDate("01.12.2019"); Assert.IsTrue(v1.GetError().Length == 0); Assert.IsTrue(v2.GetError().Length == 0); }