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
Perhaps I'm missing something but this looks like a false positive to me.
using System.Linq;using NSubstitute;namespaceClassLibrary3{publicclassClass1{publicvoidFoo(IFoofoo,IEnumerable<Description>descriptions){foreach(Description d in descriptions){
foo.Value.Returns(d.Value);// <- Warning NS4000 Returns() is set with a method that itself calls Returns. This can cause problems with NSubstitute. Consider replacing with a lambda: Returns(x => d.Value).}}}publicclassDescription{publicintValue{get;set;}}publicinterfaceIFoo{intValue{get;}}}
The text was updated successfully, but these errors were encountered:
NSubstitute 4.0.0.0
NSubstitute.Analyzers.CSharp 1.0.9
Perhaps I'm missing something but this looks like a false positive to me.
The text was updated successfully, but these errors were encountered: