Skip to content

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

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

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

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

This PR replaces full boolean cartesian-product [DataRow] sets in the dotnet.Tests project with [CombinatorialData] from Combinatorial.MSTest.

What changed

  • 14 test files, 33 test methods updated
  • All [DataRow(true)] / [DataRow(false)] (and multi-parameter boolean combinations) removed
  • Each method gets a single [CombinatorialData] attribute instead
  • The executed test cases are identical — [CombinatorialData] generates the full cartesian product of all bool parameters automatically
  • No .csproj changes — dotnet.Tests already references Combinatorial.MSTest

Why

This is part of a per-project series to modernize boolean-parameter test data in the SDK repository. [CombinatorialData] is more concise, less error-prone (no risk of missing a combination), and scales naturally when new parameters are added.

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

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