public void DateWithinLastDaysTest() { var days = 5; var date = DateTime.UtcNow.AddDays(-days).ToString("dd/MM/yyyy"); var actual = Dates.DateWithinLastDays(date, days); Assert.IsTrue(actual); }