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
I think the analyzer is incorrectly firing NS4000: Returns() is set with a method that itself calls Returns for the following code (this is the simplest I could get the code to reproduce the warning I was getting):
This is under dotnet-core 2.1 with using NSubstitute version 4.0.0, NSubstitute.Analyzers.CSharp version 1.0.5 and xunit version 2.4.1
Granted, the above code doesn't look realistic (there's no asserts!), however, I was getting the warning in one of my actual tests and it seems to be the typeof(TheClassContainingTheTest) that triggers it.
Let me know if there's anything I can do to help.
The text was updated successfully, but these errors were encountered:
I think the analyzer is incorrectly firing
NS4000: Returns() is set with a method that itself calls Returns
for the following code (this is the simplest I could get the code to reproduce the warning I was getting):This is under dotnet-core 2.1 with using NSubstitute version 4.0.0, NSubstitute.Analyzers.CSharp version 1.0.5 and xunit version 2.4.1
Granted, the above code doesn't look realistic (there's no asserts!), however, I was getting the warning in one of my actual tests and it seems to be the
typeof(TheClassContainingTheTest)
that triggers it.Let me know if there's anything I can do to help.
The text was updated successfully, but these errors were encountered: