コード例 #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];
        }
コード例 #2
0
        protected internal DateTimeOffsetRangeAssertions(DateTimeOffsetAssertions parentAssertions, DateTimeOffset?subject,
                                                         TimeSpanCondition condition,
                                                         TimeSpan timeSpan)
        {
            this.parentAssertions = parentAssertions;
            this.subject          = subject;
            this.timeSpan         = timeSpan;

            predicate = predicates[condition];
        }