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
{{ message }}
Repository navigation
Arg.Any<Arg.AnyType>() does not match arguments passed by reference #787
Describe the bug Arg.Any<Arg.AnyType>() does not match arguments passed by reference
To Reproduce
IMyServiceservice=Substitute.For<IMyService>();MyArgumentarg=new();service.MyMethod(refarg);// The following line throws.service.Received().MyMethod(refArg.Any<Arg.AnyType>());publicinterfaceIMyService{voidMyMethod<T>(refTargument);}privateclassMyArgument{}
Expected behaviour Arg.Any<Arg.AnyType>() should match arguments passed by reference
Activity
Arg.Any<Arg.AnyType>() does not match arguments passed by reference (#…
304NotModified commentedon Oct 28, 2024
Fixed by
#811
Release 5.3