-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove Moq #1472
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
Remove Moq #1472
Conversation
Remove Moq and replace with NSubstitute. Resolves App-vNext#1470.
Codecov Report
@@ Coverage Diff @@
## main #1472 +/- ##
=======================================
Coverage 83.88% 83.88%
=======================================
Files 275 275
Lines 6492 6492
Branches 1015 1015
=======================================
Hits 5446 5446
Misses 837 837
Partials 209 209
Flags with carried forward coverage won't be shown. Click here to find out more. |
| var result = new ValueTask<RateLimitLease>(_lease); | ||
| _limiter | ||
| .GetType() | ||
| .GetMethod("AcquireAsyncCore", BindingFlags.NonPublic | BindingFlags.Instance)! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:(
Was not nice even before though ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, protected mocking always looks ugly.
|
LGTM, the syntax is surprisingly nice! |
Removes Moq and replaces it with NSubstitute.
May need some tweaks to mutations and/or coverage as the previous strict mock behaviour isn't available to use.Resolves #1470.