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

Patch tests post Newtonsoft.Json upgrade to 13.0.1 #880

Merged
merged 4 commits into from
Mar 28, 2023

Conversation

davidmrdavid
Copy link
Collaborator

Follow up to: #870

It appears that CI did not run on the PR above, leading to broken tests post-merge. This PR fixes that by updating our Newtonsoft references across the test projects

@davidmrdavid davidmrdavid requested a review from cgillum March 28, 2023 22:40
Assert.IsTrue(details.IsCausedBy<Exception>()); // check that base types work too
Assert.AreEqual("This is a test exception", details.ErrorMessage);
Assert.IsNotNull(details.StackTrace);
Assert.AreEqual(typeof(InvalidOperationException).FullName, details?.ErrorType);
Copy link
Member

Choose a reason for hiding this comment

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

It's technically not correct for us to add the ? here (and below) because we already did the null check above in Assert.IsNotNull(details). If the compiler is still making you check for null, it might be because the version of Assert.IsNotNull we're calling doesn't have the right attributes on it. In that case, we should use ! instead of ? to suppress subsequent warnings.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fancy. Will do

@davidmrdavid davidmrdavid requested a review from cgillum March 28, 2023 22:57
Copy link
Member

@cgillum cgillum left a comment

Choose a reason for hiding this comment

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

LGTM!

@davidmrdavid davidmrdavid merged commit ce209b5 into main Mar 28, 2023
@davidmrdavid davidmrdavid deleted the dajusto/patch-tests-post-newtonsoft-upgrade branch March 28, 2023 23:28
@davidmrdavid davidmrdavid restored the dajusto/patch-tests-post-newtonsoft-upgrade branch March 29, 2023 17:04
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.

2 participants