Skip to content

Conversation

@mus65
Copy link
Contributor

@mus65 mus65 commented Oct 25, 2025

MSTest 4 has quite a few new asserts, analyzers and breaking changes, see https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-mstest-migration-v3-v4 .

Most of these were automatically fixed by the code fixer, see separate commits.

The update also triggered new sonar analyzer warnings, which seems to a bug in sonar, see SonarSource/sonar-dotnet#9767 . I suppressed these for now.

@WojciechNagorski
Copy link
Collaborator

I think it is a good time to merge this change

Copy link
Collaborator

@Rob-Hague Rob-Hague left a comment

Choose a reason for hiding this comment

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

It still suffers from missing console output in the integration tests #1693 (comment):

This branch:

Image

develop:

Image

I found microsoft/testfx#6457 but apparently it is working as intended...

Copy link
Collaborator

Choose a reason for hiding this comment

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

The changes in this file should be reverted - most of them are explicitly testing ICollection.Contains implementations which is now lost

(I don't think MSTEST0037 really provides much benefit)

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.

3 participants