Skip to content

ValueTuple tests now running if not targeting NET35 #3506

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

Merged
merged 1 commit into from
Apr 5, 2020

Conversation

stevenaw
Copy link
Member

The value tuple tests were setup to only run for NET45. Seems like they pass for me in the tests as far back as NET40, due to the inclusion of System.ValueTuple as a test dependency. This PR switches up the conditional compilation so that they run #if !NET35 instead of the previous #if NET45.

I'm unsure if it can be expanded further so that the ValueTuple + Tuple tests are run on NET35 too.

Copy link
Member

@mikkelbu mikkelbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and it also make sense to use the same "guard" as in ValueTupleEqualityTests.cs. We will need another review before merge

@ChrisMaddock
Copy link
Member

Good catch, @stevenaw! 🙂

@ChrisMaddock ChrisMaddock merged commit e801f0a into nunit:master Apr 5, 2020
@ChrisMaddock ChrisMaddock added this to the 3.13 milestone Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants