public void GetSegmentedShowsCorrectlySegmentsWhenDaysOff() { var utcDate = new DateTimeOffset(2020, 5, 29, 11, 0, 0, TimeSpan.FromHours(-5)); var startDate = _systemUnderTest.ConvertFromUtc(utcDate.UtcDateTime); var shows = new[] { DocsShow.CreatePlaceholder(startDate), DocsShow.CreatePlaceholder(startDate.AddDays(7)), DocsShow.CreatePlaceholder(startDate.AddDays(14)), DocsShow.CreatePlaceholder(startDate.AddDays(21)), DocsShow.CreatePlaceholder(startDate.AddDays(28)) }; var segmentedShows = _systemUnderTest.GetSegmentedShows(shows, utcDate.UtcDateTime.AddDays(15), true); Assert.NotNull(segmentedShows); Assert.NotNull(segmentedShows.PastShows); Assert.NotNull(segmentedShows.NextShow); Assert.NotNull(segmentedShows.FutureShows); Assert.Equal(startDate.AddDays(21), segmentedShows.NextShow.Date); }