ShrinkEndTo() 공개 메소드

public ShrinkEndTo ( System.DateTime moment ) : void
moment System.DateTime
리턴 void
예제 #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 ) );
 }