[This is preliminary documentation and is subject to change.]
Provides types to aid testing production code which uses time zones, to avoid hard-coding knowledge of "real" time zones into tests.
This code is not included as part of the main NuGet package; it's in a separate NodaTime.Testing package.

C# | Visual Basic | Visual C++ |
namespace NodaTime.Testing.TimeZones
Namespace NodaTime.Testing.TimeZones
namespace NodaTime.Testing.TimeZones

All Types | Classes |
Icon | Type | Description |
---|---|---|
![]() | MultiTransitionDateTimeZone..::..Builder |
Builder to create instances of MultiTransitionDateTimeZone. Each builder
can only be built once.
|
![]() | FakeDateTimeZoneSource..::..Builder |
Builder for FakeDateTimeZoneSource, allowing the built object to
be immutable, but constructed via object/collection initializers.
|
![]() | FakeDateTimeZoneSource |
A time zone source for test purposes.
Create instances via FakeDateTimeZoneSource..::..Builder.
|
![]() | MultiTransitionDateTimeZone |
Time zone with multiple transitions, created via a builder.
|
![]() | SingleTransitionDateTimeZone |
Time zone with a single transition between two offsets. This provides a simple way to test behaviour across a transition.
|