ShrinkEndTo() public method

public ShrinkEndTo ( System.DateTime moment ) : void
moment System.DateTime
return void
Beispiel #1
0
 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 ) );
 }