Noda Time
AutoAdvance Property
NamespacesNodaTime.TestingFakeClockAutoAdvance

[This is preliminary documentation and is subject to change.]

Amount of time to advance the clock by on each call to read the current time.
Declaration Syntax
C#Visual BasicVisual C++
public Duration AutoAdvance { get; set; }
Public Property AutoAdvance As Duration
	Get
	Set
public:
property Duration AutoAdvance {
	Duration get ();
	void set (Duration value);
}
Remarks

This defaults to zero, with the exception of the FakeClock(Instant, Duration) constructor, which takes the initial value directly. If this is zero, the current time as reported by this clock will not change other than by calls to Reset(Instant) or to one of the Advance(Duration) methods.

The value could even be negative, to simulate particularly odd system clock effects.

See Also

Assembly: NodaTime.Testing (Module: NodaTime.Testing.dll) Version: 1.2.0.0 (1.2.0)