X Tutup
Skip to content

Fix range test assertion to check for NpgsqlRange<int>.Empty#6485

Merged
roji merged 1 commit intonpgsql:mainfrom
brianpursley:fix-range-test
Mar 11, 2026
Merged

Fix range test assertion to check for NpgsqlRange<int>.Empty#6485
roji merged 1 commit intonpgsql:mainfrom
brianpursley:fix-range-test

Conversation

@brianpursley
Copy link
Copy Markdown
Contributor

Fixed the TypeConverter test assertion to check empty range instead of using NUnit's EmptyConstraint which can't check NpgsqlRange emptiness.

It looks like this was inadvertently changed in the NUnit conversion PR #6183. This PR essentially puts it back to what it was before, just with the newer assertion syntax.

The test remains ignored, but now passes when run locally.

Copilot AI review requested due to automatic review settings March 11, 2026 15:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the RangeTests.TypeConverter ignored test to assert emptiness using NpgsqlRange<int>.Empty instead of NUnit’s Is.Empty, which does not correctly represent “empty” semantics for NpgsqlRange<T>.

Changes:

  • Replace Assert.That(result, Is.Empty) with Assert.That(result, Is.EqualTo(NpgsqlRange<int>.Empty)) for the type-converter “empty” range case.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@roji roji merged commit aa86a1d into npgsql:main Mar 11, 2026
15 of 16 checks passed
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.

3 participants

X Tutup