Skip to content

Conversation

@alastairlundy
Copy link
Contributor

@alastairlundy alastairlundy commented Jan 6, 2026

This PR adds ArgumentOutOfRange Throw method nint overloads for ThrowIfGreaterThan, ThrowIfGreaterThanOrEqual, ThrowIfLessThan, ThrowIfLessThanOrEqual, ThrowIfZero, and the equivalent Ensure static class method overloads.

This PR also contains a fix for a typo in an Ensure NotLessThanOrEqual xml doc comment.

@alastairlundy alastairlundy changed the title Add remaining nint overloads for ArgumentOutOfRange Throw methods Add remaining nint overloads for ArgumentOutOfRange Throw methods Jan 6, 2026
@alastairlundy
Copy link
Contributor Author

@SimonCropp There appears to be no unit tests for any of the nint ArgumentOutOfRangeException overloads. Do you want me to add unit tests for these overloads?

@alastairlundy alastairlundy marked this pull request as ready for review January 6, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant