We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here's an example of the problem:
var mock = new Mock<ISimpleInterface>(MockBehavior.Strict); mock.Setup(x => x.SimpleMethod(It.IsAny<Guid?>())); mock.Object.SimpleMethod(null);
This used to work in Moq 4.2.1502.0911, but in 4.2.1506.2016 it fails. Workaround is to setup null explicitly instead of the Nullable Guid:
mock.Setup(x => x.SimpleMethod(null));
The text was updated successfully, but these errors were encountered:
The problem is in cc45976 because of Nullable<T> is value type
Sorry, something went wrong.
So this should also be fixed by the merged PR #185. if so, plz close after verifying :)
The test at the top of this thread works fine in recent versions of Moq, so I am closing this.
No branches or pull requests
Here's an example of the problem:
This used to work in Moq 4.2.1502.0911, but in 4.2.1506.2016 it fails. Workaround is to setup null explicitly instead of the Nullable Guid:
The text was updated successfully, but these errors were encountered: