public void GivenValidDateShouldFormatDate() { var dateValidator = new DateValidator(); var formattedDate = dateValidator.FormatDate("01, March", "31, March"); Assert.Equal("01 March - 31 March", formattedDate); }
public void GivenInValidDateShouldThrowException(string startDate, string endDate) { var dateValidator = new DateValidator(); Assert.Throws <Exception>(() => dateValidator.FormatDate(startDate, endDate)); }