ExpandStartTo() public method

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