-
Notifications
You must be signed in to change notification settings - Fork 7
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
Disable CallInfo analysis when Arg.AnyType used for argument matching #212
Comments
@dtchepak from perspective of analyzer project new NSubstitute version seems to be introduced breaking change in the NSubstitute API. I have tons of failing tests after upgrade e.g using System;
using NSubstitute;
using NSubstitute.ReceivedExtensions;
namespace MyNamespace
{
public interface IFoo
{
int? this[int? x] { get; set; }
}
public class FooTests
{
public void Test()
{
var substitute = Substitute.For<IFoo>();
substitute.DidNotReceiveWithAnyArgs()[1] = Arg.Compat.Do<int>(__ => {});
}
}
}
Interestingly the same piece of code compiles just fine with |
As in it only fails with VS? 🤔 Confirmed |
nsubstitute/NSubstitute#715 (comment)
nsubstitute/NSubstitute#715 (comment)
The text was updated successfully, but these errors were encountered: