public void ShrinkEndToTest() { TimeRange timeRange = new TimeRange( start, end ); timeRange.ShrinkEndTo( end.AddMilliseconds( 1 ) ); Assert.AreEqual( timeRange.End, end ); timeRange.ShrinkEndTo( end.AddMinutes( -1 ) ); Assert.AreEqual( timeRange.End, end.AddMinutes( -1 ) ); }