-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arg.AnyType() for help with matching generic calls #634
Comments
My workaround was to use Moq for this specific case 😉. Simpler, but I'd rather uninstall Moq for good! Please implement this, since I believe that In my case I just wanted a callback to output the |
…generic type parameter.
I did a tentative implementation of this issue, you can look at this draft PR: #715 It's not a ready PR because I took a compromise that maybe has a better solution and also because the AppVeyor build is failing. It seems that the latest PR (#711 by @alexandrnikitin) broke it somehow. |
Any chance this can be merged? With Moq currently self destructing this is the last thing holding many people back from using NSubstitute. |
Hi @edandersen , I'll try to get to sort this out this weekend. Sorry for the delay. |
Still missing are the logging tests. Looks like NSubstitute still lacks some functionality for this, but it should be supported soon: nsubstitute/NSubstitute#634
Any updates on this? |
I was on holiday, today I will take a look! |
@dtchepak Everything looks fine now, the build is passing so I think this is ready! |
Implemented #634: `Arg.AnyType` can be used in place of a generic type parameter
Glad this is getting worked on! Any ETA on the publishing timeline for this set of changes? We are eagerly awaiting this feature 😄 |
@akousmata just waiting on review for 5.1.0. Anyone that has time please take a look: #731 The PR updates |
Hey @dtchepak, the PR seems to be completed. Is there a plan when the next Release is? |
@alex289 just published 5.1.0 now, should be available on nuget as soon as nuget.org finishes indexing it. |
Since this issue is all about using NSubstitute to verify use of the ILogger, I'd like to let everyone know I have released NSubstitute.Community.Logging which aims to make this as easy as possible by providing extension methods that mirror the ILogger extension methods but they work with NSubstitute's Received/DidNotReceive methods. v0.0.1 is on nuget now |
From #152 (comment):
The text was updated successfully, but these errors were encountered: