コード例 #1
0
        public void IsSatisfied_DateIsInTheFuture_ReturnsTrue()
        {
            var specification = new DateNotInThePast();
            var result        = specification.IsSatisfiedBy(DateTime.Now.AddDays(1));

            result.ShouldBeTrue();
        }
コード例 #2
0
        public void IsSatisfied_DateIsInThePast_ReturnsFalse()
        {
            var specification = new DateNotInThePast();
            var result        = specification.IsSatisfiedBy(new DateTime(1970, 1, 1));

            result.ShouldBeFalse();
        }