Skip to content

Expanding constraint examples#1154

Open
OsirisTerje wants to merge 4 commits intomasterfrom
ExpandingConstraintExamples
Open

Expanding constraint examples#1154
OsirisTerje wants to merge 4 commits intomasterfrom
ExpandingConstraintExamples

Conversation

@OsirisTerje
Copy link
Member

Updated the comparison constraints, including examples.

Copilot AI review requested due to automatic review settings March 15, 2026 21:00
Copy link
Contributor

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

This PR expands the NUnit comparison-constraint documentation by adding richer, snippet-backed examples (including custom comparer usage) and updating the constraint pages to describe supported comparable types.

Changes:

  • Extended ConstraintExamples.cs with new GreaterThan/GreaterThanOrEqual/LessThan/LessThanOrEqual examples plus custom comparer implementations.
  • Switched multiple constraint docs to reference snippet regions via DocFX includes and added brief “supported types” descriptions.
  • Minor cleanups/formatting tweaks in snippet examples.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
docs/snippets/Snippets.NUnit/ConstraintExamples.cs Adds new comparison constraint examples and custom comparer helper types for doc snippets.
docs/articles/nunit/writing-tests/constraints/GreaterThanConstraint.md Adds supported-types description and includes comparer snippet.
docs/articles/nunit/writing-tests/constraints/GreaterThanOrEqualConstraint.md Adds supported-types description and switches examples to snippet includes.
docs/articles/nunit/writing-tests/constraints/LessThanConstraint.md Adds supported-types description and includes comparer snippet.
docs/articles/nunit/writing-tests/constraints/LessThanOrEqualConstraint.md Adds supported-types description and switches examples to snippet includes.
docs/articles/nunit/writing-tests/constraints/EqualConstraint.md Adds supported-types description for EqualConstraint.

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

You can also share your feedback on Copilot code review. Take the survey.

OsirisTerje and others added 2 commits March 15, 2026 22:16
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants