示例#1
0
        public void IsUpToDate_DateOutSideHour_ReturnsFalse()
        {
            var target = new SearchThreadPosts() { LastUpdated = DateTime.Now.AddHours(-2) };
            Assert.IsFalse(target.IsUpToDate(null));

        }
示例#2
0
        public void IsUpToDate_DateWithinHour_ReturnsTrue()
        {
            var target = new SearchThreadPosts() { LastUpdated = DateTime.Now.AddMinutes(-1) };
            Assert.IsTrue(target.IsUpToDate(null));

        }