-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Q: Verify with It.IsAny for structs? #601
Comments
Moq should support |
Hi, https://www.dropbox.com/s/uiq2gor85rb57r1/NUnitAndMoq.Tests.zip?dl=0 / Best regards |
The method that you're setting up takes its argument by reference. _childMock.Verify(Sub(x) x.GetStructByRef(It.Ref(Of StructOne).IsAny), Times.Once()) |
Hello,
I have a strange problem when I try to verify with It.IsAny on Struct in Loose mode.
Struct is from another library and I have no control over it. It is passed as
out
argument of a method.I can verify the specific calls with specific values and it is correct, but when I use It.IsAny it always says 0 calls.
I can see that the Invocations are set and there is only one invocation with values that were actually set.
Is it some kind of limitation for structs?
Trace:
The text was updated successfully, but these errors were encountered: