public void CanAccuratelyRenderFutureTimeInSeconds()
        {
            var pastTime = DateTime.UtcNow.AddSeconds(1d);

            var dateTimeOutput = DateTimeLocalizationHelper.ToRelativeDateTime(pastTime);

            Assert.That(dateTimeOutput.Contains("second"));
            Assert.That(dateTimeOutput.Contains("1"));
            Assert.AreEqual(dateTimeOutput, "in 1 second");
        }
        public void CanAccuratelyRenderFutureTimeInHours()
        {
            var pastTime = DateTime.UtcNow.AddHours(14d);

            var dateTimeOutput = DateTimeLocalizationHelper.ToRelativeDateTime(pastTime);

            Assert.That(dateTimeOutput.Contains("hours"));
            Assert.That(dateTimeOutput.Contains("14"));
            Assert.AreEqual(dateTimeOutput, "in 14 hours");
        }
        public void CanAccuratelyRenderFutureTimeInMinutes()
        {
            var pastTime = DateTime.UtcNow.AddMinutes(30d);

            var dateTimeOutput = DateTimeLocalizationHelper.ToRelativeDateTime(pastTime);

            Assert.That(dateTimeOutput.Contains("minutes"));
            Assert.That(dateTimeOutput.Contains("30"));
            Assert.AreEqual(dateTimeOutput, "in 30 minutes");
        }
        public void CanAccuratelyRenderPastTimeInDays()
        {
            var pastTime = DateTime.UtcNow.AddDays(-3d);

            var dateTimeOutput = DateTimeLocalizationHelper.ToRelativeDateTime(pastTime);

            Assert.That(dateTimeOutput.Contains("days"));
            Assert.That(dateTimeOutput.Contains("3"));
            Assert.AreEqual(dateTimeOutput, "3 days ago");
        }