You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds new parameter matchers to Mockolate’s It API (IsNotNull and IsNotOneOf) and corresponding tests/API snapshots to extend the strongly-typed matcher surface.
Changes:
Add It.IsNotNull<T>(...) matcher and tests.
Add It.IsNotOneOf<T>(...) matcher (with .Using(IEqualityComparer<T>)) and tests.
Update public API baselines; includes an additional change to It.IsOneOf<T>(...) signature.
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds new parameter matchers to Mockolate’s It API (IsNotNull and IsNotOneOf) and corresponding tests/API snapshots to extend the strongly-typed matcher surface.
Changes:
Add It.IsNotNull<T>(...) matcher and tests.
Add It.IsNotOneOf<T>(...) matcher (with .Using(IEqualityComparer<T>)) and tests.
Update public API baselines; includes an additional change to It.IsOneOf<T>(...) signature.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
File
Description
Tests/Mockolate.Tests/ItTests.IsNotOneOfTests.cs
New tests covering matching behavior, covariance in setup/verify, comparer usage, and ToString() for IsNotOneOf.
Tests/Mockolate.Tests/ItTests.IsNotNullTests.cs
New tests covering IsNotNull matching and ToString() behavior (default/custom).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds new parameter matchers to Mockolate’s
ItAPI (IsNotNullandIsNotOneOf) and corresponding tests/API snapshots to extend the strongly-typed matcher surface.Changes:
It.IsNotNull<T>(...)matcher and tests.It.IsNotOneOf<T>(...)matcher (with.Using(IEqualityComparer<T>)) and tests.It.IsOneOf<T>(...)signature.