ShrinkStartTo() public method

public ShrinkStartTo ( System.DateTime moment ) : void
moment System.DateTime
return void
Esempio n. 1
0
 public void ShrinkStartToTest()
 {
     TimeRange timeRange = new TimeRange( start, end );
     timeRange.ShrinkStartTo( start.AddMilliseconds( -1 ) );
     Assert.AreEqual( timeRange.Start, start );
     timeRange.ShrinkStartTo( start.AddMinutes( 1 ) );
     Assert.AreEqual( timeRange.Start, start.AddMinutes( 1 ) );
 }