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
When using CallInfo.ArgAt<T> to get the value set into an indexer, the NS3000 diagnostic is produced even though the code runs without issues.
publicinterfaceIClass{int this[stringname]{get;set;}}publicclassTest{publicvoidIndexer(){IClasstarget= Substitute.For<IClass>();
target.When((x)=> x["foo"]=42).Do((info)=>{stringkey= info.ArgAt<string>(0);intvalue= info.ArgAt<int>(1);// ~~~~~~~~~~~~~~~~~~ There is no argument at position 1});}}
The text was updated successfully, but these errors were encountered:
When using
CallInfo.ArgAt<T>
to get the value set into an indexer, the NS3000 diagnostic is produced even though the code runs without issues.The text was updated successfully, but these errors were encountered: