public void ChangeFinish()
        {
            var first = new DateRange(this.date1900, this.date2000);

            Assert.AreEqual(new DateRange(this.date1900, this.date1950), first.ChangeFinish(this.date1950), "ChangeFinish Date");
            Assert.AreEqual(new DateRange(this.date1900, this.date2000.AddDays(-1)), first.ChangeFinish(new TimeSpan(-1, 0, 0, 0)), "ChangeFinish TimeSpan");
        }
 private static DateRange TerminateRange(this DateRange range, DateRange newRange)
 {
     return(range.ChangeFinish(newRange.Start.AddSeconds(-1)));
 }