Reset() public method

public Reset ( ) : void
return void
Beispiel #1
0
 public void ResetTest()
 {
     TimeRange timeRange = new TimeRange( start, end );
     Assert.AreEqual( timeRange.Start, start );
     Assert.IsTrue( timeRange.HasStart );
     Assert.AreEqual( timeRange.End, end );
     Assert.IsTrue( timeRange.HasEnd );
     timeRange.Reset();
     Assert.AreEqual( timeRange.Start, TimeSpec.MinPeriodDate );
     Assert.IsFalse( timeRange.HasStart );
     Assert.AreEqual( timeRange.End, TimeSpec.MaxPeriodDate );
     Assert.IsFalse( timeRange.HasEnd );
 }