Example #1
0
        protected internal TimeSpanAssertions(DateTimeOffsetAssertions parentAssertions, DateTimeOffset?subject, TimeSpanCondition condition,
                                              TimeSpan timeSpan)
        {
            this.parentAssertions = parentAssertions;
            this.subject          = subject;
            this.timeSpan         = timeSpan;

            predicate = predicates[condition];
        }
        protected internal TimeSpanAssertions(DateTimeOffsetAssertions parentAssertions, DateTimeOffset? subject, TimeSpanCondition condition,
            TimeSpan timeSpan)
        {
            this.parentAssertions = parentAssertions;
            this.subject = subject;
            this.timeSpan = timeSpan;

            predicate = predicates[condition];
        }
        protected internal DateTimeRangeAssertions(TAssertions parentAssertions, DateTime?subject,
                                                   TimeSpanCondition condition,
                                                   TimeSpan timeSpan)
        {
            this.parentAssertions = parentAssertions;
            this.subject          = subject;
            this.timeSpan         = timeSpan;

            predicate = predicates[condition];
        }