Пример #1
0
        public void DateWithinDurationTest()
        {
            var days     = 5;
            var date     = DateTime.UtcNow.AddDays(-days).ToString("dd/MM/yyyy");
            var duration = string.Concat("P", days, "D");
            var actual   = Dates.DateWithinDuration(date, duration);

            Assert.IsTrue(actual);
        }