Example #1
0
        public void ShouldReturnFalseWhenCurrentRangeDoNotEndsWithRange(int day)
        {
            // For
            DateTimeRange currentRange = new DateTimeRange
            {
                Start = new DateTime(2020, 04, 01),
                End   = new DateTime(2020, 04, 30)
            };

            DateTimeRange newRange = currentRange;

            // Given
            DateTimeRange range = new DateTimeRange
            {
                Start = new DateTime(2020, 04, 01),
                End   = new DateTime(2020, 04, day)
            };

            bool value = newRange.EndsWith(range);

            // Assert
            Assert.IsFalse(value);
        }