Skip to content

Use Combinatorial.MSTest for boolean DataRow tests in dotnet-watch.Tests - #55012

Draft
Evangelink wants to merge 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/combinatorial-dotnet-watch-tests
Draft

Use Combinatorial.MSTest for boolean DataRow tests in dotnet-watch.Tests#55012
Evangelink wants to merge 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/combinatorial-dotnet-watch-tests

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

In dotnet-watch.Tests, replace full boolean cartesian-product [DataRow] sets with [CombinatorialData] from Combinatorial.MSTest.

Changes

  • ConsoleReporterTests.WritesToStandardStreams: replaced [DataRow(true)] + [DataRow(false)] with [CombinatorialData]
  • SourceFileUpdateTests.RenameSourceFile: same replacement
  • SourceFileUpdateTests.RenameDirectory: same replacement

The executed test cases are identical — [CombinatorialData] on a single bool parameter generates true and false automatically. No behavior change.

No .csproj change is needed as the project already references Combinatorial.MSTest.

This is part of a per-project series replacing verbose boolean [DataRow] patterns with the more concise [CombinatorialData] attribute.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

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