Skip to content

Add new argument matcher for comparing objects by reference - #963

Merged
dtchepak merged 1 commit into
nsubstitute:mainfrom
Wer-Wolf:main
Jul 12, 2026
Merged

Add new argument matcher for comparing objects by reference#963
dtchepak merged 1 commit into
nsubstitute:mainfrom
Wer-Wolf:main

Conversation

@Wer-Wolf

Copy link
Copy Markdown
Contributor

Sometimes users want to compare objects based on references instead of equality. Add a new argument matcher and the necessary plumbing to allow users to easily do this.

Sometimes users want to compare objects based on references instead of
equality. Add a new argument matcher and the necessary plumbing to allow
users to easily do this.

Signed-off-by: Armin Wolf <awolf@advitec.de>
@Wer-Wolf

Copy link
Copy Markdown
Contributor Author

Any updates on this?

@dtchepak dtchepak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry for the delay in getting to this. Looks great, thanks!

I'll approve and merge this after the 6.0.0 release.

@dtchepak
dtchepak merged commit 9ebdb6c into nsubstitute:main Jul 12, 2026
@Wer-Wolf

Copy link
Copy Markdown
Contributor Author

Thank you :).

This was referenced Aug 8, 2026
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