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

Fixes It.IsRegex issue with non-constant arguments #4

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

adrianiftode
Copy link
Owner

Assume the provided argument to It.IsRegex could be any expression
so just compile and invoke the expression

Fixes issue #3

Assume the provided argument to It.IsRegex could be any expression
so just compile the expression

Fixes issue #3
@adrianiftode adrianiftode merged commit f33c80b into master Oct 1, 2020
@adrianiftode adrianiftode deleted the issue-3-field-to-constant branch October 1, 2020 20:13
adrianiftode added a commit that referenced this pull request Nov 26, 2020
The behind loggerMock.Verify was called twice
for the times overload.

So if times is Times.Never and the sut implementation
is valid, the first verify call is not throwing, as expected.

But the second loggerMock.Verify was also called with default values
and the test reported a false negative, as the sut implementation
was correct, but test improperly failed expecting a call on sut's method.

Fixes issue #4
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.

1 participant