Skip to content

Annotate ITestData and implementations #3488

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 8 commits into from
Mar 5, 2020
Merged

Conversation

jnm2
Copy link
Contributor

@jnm2 jnm2 commented Mar 3, 2020

This is a central point around which a lot of interfaces and implementations turn.
Contributes to #3376.

Commits

Cleanup

  1. Two files had line endings that didn't match

Annotation

  1. Annotate ITestData and implementations
  2. Enable NRTs for usages of ITestData to validate annotations

Fix

  1. Fix NUnit crash found by nullability warnings

Refactoring

  1. Always initialize TestParameters.Arguments because past behavior is inconsistent with ITestData usage
  2. Move TestMethod.NoArguments to TestParameters.NoArguments
  3. Refactor InitializeArguments into a more analysis-friendly constructor (fixes remaining warnings)

Improvement

  1. Add null guards that should have been present anyway to fix warnings in VS prior to 16.5

@jnm2 jnm2 requested a review from a team March 3, 2020 00:12
@jnm2 jnm2 force-pushed the annotate_test_data branch from f804d15 to 8055198 Compare March 3, 2020 00:34
rprouse
rprouse previously approved these changes Mar 3, 2020
Copy link
Member

@rprouse rprouse left a comment

Choose a reason for hiding this comment

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

LGTM, waiting on build of your latest push.

@jnm2 jnm2 force-pushed the annotate_test_data branch 2 times, most recently from 58d9d25 to a841e86 Compare March 3, 2020 01:11
@jnm2 jnm2 force-pushed the annotate_test_data branch from a841e86 to 0f68126 Compare March 3, 2020 01:40
Copy link
Member

@rprouse rprouse left a comment

Choose a reason for hiding this comment

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

Looks good to me. Let's not worry about the LF issue. Yes, Git is supposed to take care of it normally, but occasionally someone has git configured wrong and it doesn't and gets in somehow...

@rprouse rprouse merged commit de5e0b1 into nunit:master Mar 5, 2020
@jnm2 jnm2 deleted the annotate_test_data branch March 5, 2020 01:49
@jnm2 jnm2 linked an issue Mar 5, 2020 that may be closed by this pull request
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.

Nullable Reference Types annotations. Fixed by team through multiple PRs.
2 participants