We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add code fix provider which removes redundant Received call from Received.InOrder checks
Received
Received.InOrder
Before fix
using NSubstitute; using NSubstitute.ReceivedExtensions; namespace MyNamespace { public interface IFoo { int Bar(); int Bar(int x); } public class FooTests { public void Test() { var substitute = NSubstitute.Substitute.For<IFoo>(); Received.InOrder(() => { substitute.Received().Bar(); substitute.Received().Bar(Arg.Any<int>()); }); } } }
after fix
using NSubstitute; using NSubstitute.ReceivedExtensions; namespace MyNamespace { public interface IFoo { int Bar(); int Bar(int x); } public class FooTests { public void Test() { var substitute = NSubstitute.Substitute.For<IFoo>(); Received.InOrder(() => { substitute.Bar(); substitute.Bar(Arg.Any<int>()); }); } } }
The text was updated successfully, but these errors were encountered:
GH-181 - code fix provider for NS5001
46898f8
2a72ed5
ca04c72
dfb5181
f24edcb
Merge pull request #182 from nsubstitute/GH-181-received-in-received-…
f1e6a63
…in-order-code-fix GH-181 - code fix provider for NS5001
tpodolak
Successfully merging a pull request may close this issue.
Add code fix provider which removes redundant
Received
call fromReceived.InOrder
checksBefore fix
after fix
The text was updated successfully, but these errors were encountered: