Skip to content

feat: add support for TimeZoneInfo in abstractions#1046

Merged
vbreuss merged 1 commit into
mainfrom
feat/timezoneinfo-support
Jul 10, 2026
Merged

feat: add support for TimeZoneInfo in abstractions#1046
vbreuss merged 1 commit into
mainfrom
feat/timezoneinfo-support

Conversation

@vbreuss

@vbreuss vbreuss commented Jul 10, 2026

Copy link
Copy Markdown
Member

Introduces a new time-system abstraction for System.TimeZoneInfo, aligning it with the existing ITimeSystem pattern and extending parity tests to cover the new API.

  • Introduces ITimeZoneInfo (exposing the environment-coupled statics Local, Utc, FindSystemTimeZoneById and GetSystemTimeZones) and wires it into ITimeSystem.
  • Implements real-time support via TimeZoneInfoWrapper and exposes it from RealTimeSystem.
  • Extends parity test helpers/tests to validate the abstraction against System.TimeZoneInfo (with static-method exclusions for the members that are intentionally not abstracted).

Introduces a new time-system abstraction for `System.TimeZoneInfo`,
aligning it with the existing `ITimeSystem` pattern and extending parity
tests to cover the new API.

- Introduces `ITimeZoneInfo` (exposing the environment-coupled statics
  `Local`, `Utc`, `FindSystemTimeZoneById` and `GetSystemTimeZones`) and
  wires it into `ITimeSystem`.
- Implements real-time support via `TimeZoneInfoWrapper` and exposes it
  from `RealTimeSystem`.
- Extends parity test helpers/tests to validate the abstraction against
  `System.TimeZoneInfo` (with static-method exclusions for the members
  that are intentionally not abstracted).
@vbreuss vbreuss self-assigned this Jul 10, 2026
@vbreuss vbreuss added the enhancement New feature or request label Jul 10, 2026
@github-actions

Copy link
Copy Markdown

Test Results

 1 files   -     101   1 suites   - 101   2s ⏱️ - 2h 25m 29s
12 tests  - 112 592  12 ✅  -  99 982  0 💤  - 12 610  0 ❌ ±0 
12 runs   - 269 314  12 ✅  - 232 602  0 💤  - 36 712  0 ❌ ±0 

Results for commit 75d3e53. ± Comparison against base commit c4e0fd4.

This pull request removes 112593 tests.
  )
)
Testably.Abstractions.AccessControl.Tests.AccessControlHelperTests ‑ GetExtensibilityOrThrow_DirectoryInfo_ShouldNotThrow
Testably.Abstractions.AccessControl.Tests.AccessControlHelperTests ‑ GetExtensibilityOrThrow_FileInfo_ShouldNotThrow
Testably.Abstractions.AccessControl.Tests.AccessControlHelperTests ‑ GetExtensibilityOrThrow_FileSystemStream_ShouldNotThrow
Testably.Abstractions.AccessControl.Tests.DirectoryAclExtensionsTests ‑ CreateDirectory_NullDirectorySecurity_ShouldThrowArgumentNullException
Testably.Abstractions.AccessControl.Tests.DirectoryAclExtensionsTests ‑ CreateDirectory_ShouldChangeAccessControl(bar)
Testably.Abstractions.AccessControl.Tests.DirectoryAclExtensionsTests ‑ CreateDirectory_ShouldChangeAccessControl(bar\foo)
Testably.Abstractions.AccessControl.Tests.DirectoryAclExtensionsTests ‑ GetAccessControl_ShouldBeInitializedWithNotNullValue
Testably.Abstractions.AccessControl.Tests.DirectoryAclExtensionsTests ‑ GetAccessControl_ShouldReturnSetResult
…

@vbreuss vbreuss merged commit b95ea0c into main Jul 10, 2026
11 of 12 checks passed
@vbreuss vbreuss deleted the feat/timezoneinfo-support branch July 10, 2026 23:22
@github-actions

Copy link
Copy Markdown

This is addressed in release v7.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request state: released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant