-
Notifications
You must be signed in to change notification settings - Fork 77
Added Xunit CustomMatcher to test case of union #134
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
Conversation
Added a CustomMatcher that takes a quotation and will then check if a value is of the same case.
Also added the feature to the operators matrix.
Enables the ofCase-CustomMatcher to retrieve the names of all union cases if multiple are supplied using a tuple.
The private union type used for testing has been made public since that is required for the tests to run properly.
Also added better samples and added more unit tests.
|
Hi, thank you for the PR! Can you please add tests for other frameworks?
|
|
Is there a good place to store common code? |
|
I've updated my PR to include an implementation of |
|
Thank you for PR @b0wter ! |
I've added code to allow the user the check the case of a union (see #16). Example:
Currently, this only works in Xunit. If you like the idea I'll try to add support for other frameworks.