Skip to content
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

Ensure that null never matches It.IsRegex #385

Merged
merged 1 commit into from
Jun 21, 2017
Merged

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Jun 21, 2017

Currently, matching null against any It.IsRegex placeholder will result in an ArgumentNullException being thrown by the framework. This is unintuitive.

This changes Moq behavior so that null will simply never match any It.IsRegex.

This fixes #266.

Currently, matching `null` against any `It.IsRegex` placeholder will
result in an `ArgumentNullException` being thrown by the framework.
This is unintuitive.

This changes Moq behavior so that `null` will simply never match any
`It.IsRegex`.
@stakx stakx merged commit 62f5413 into devlooped:develop Jun 21, 2017
@stakx stakx deleted the null-regex branch June 21, 2017 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant