Skip to content

Add Ulid.Empty field and corresponding tests#8

Merged
Seramis merged 1 commit intomainfrom
empty_ulid_static_property
Jun 24, 2025
Merged

Add Ulid.Empty field and corresponding tests#8
Seramis merged 1 commit intomainfrom
empty_ulid_static_property

Conversation

@Seramis
Copy link
Copy Markdown
Member

@Seramis Seramis commented Jun 24, 2025

Introduce a static readonly field Ulid.Empty in the Ulid struct to represent an empty ULID value. This field serves as a default or placeholder. A new test method EmptyUlid_ShouldBeDefault is added to ensure Ulid.Empty behaves as expected, confirming it equals the default ULID and has a byte array of all zeros. Documentation comments are included to clarify the purpose of the Ulid.Empty field.

Implements solution described in #6.

Introduce a static readonly field `Ulid.Empty` in the `Ulid` struct to represent an empty ULID value. This field serves as a default or placeholder. A new test method `EmptyUlid_ShouldBeDefault` is added to ensure `Ulid.Empty` behaves as expected, confirming it equals the default ULID and has a byte array of all zeros. Documentation comments are included to clarify the purpose of the `Ulid.Empty` field.
@Seramis Seramis self-assigned this Jun 24, 2025
@Seramis Seramis added the enhancement New feature or request label Jun 24, 2025
@Seramis Seramis merged commit 33b5bfb into main Jun 24, 2025
3 checks passed
@Seramis Seramis deleted the empty_ulid_static_property branch June 24, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant