public void ExpandOneDateRangeTest()
        {
            var source     = new[] { new DateRange(new DateTime(2020, 1, 15), new DateTime(2020, 2, 1)) };
            var before     = TimeSpan.FromDays(1);
            var after      = TimeSpan.FromDays(5);
            var expected   = new[] { new DateRange(new DateTime(2020, 1, 14), new DateTime(2020, 2, 6)) };
            var collection = AnalyticSourceHelper.ExpandIntervals(source, before, after);

            DateRangeCollectionsComparer(expected, collection);
        }
        public void ExpandEmptyDateRangesTest()
        {
            var source     = Enumerable.Empty <IDateRange>();
            var before     = new TimeSpan(1000);
            var after      = new TimeSpan(1000);
            var collection = AnalyticSourceHelper.ExpandIntervals(source, before, after);

            Assert.IsNotNull(collection, "ExpandIntervals вернул null");
            Assert.AreEqual(collection.Count(), 0, "Коллекция не пуста");
        }