Skip to content

Use Combinatorial.MSTest for boolean DataRow tests in Microsoft.NET.Build.Tests - #55009

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

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

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

This PR replaces full boolean cartesian-product [DataRow] sets with [CombinatorialData] in the Microsoft.NET.Build.Tests test project.

What changed

  • 46 test methods across 19 files had their explicit [DataRow(true)] / [DataRow(false)] (and multi-boolean combinations) replaced with a single [CombinatorialData] attribute.
  • The Microsoft.NET.Build.Tests.csproj gains a new ItemGroup with:
    • <PackageReference Include="Combinatorial.MSTest" />
    • <Using Include="Combinatorial.MSTest" /> (global using so no per-file import is needed)

Why this is safe

[CombinatorialData] automatically generates the full cartesian product of all bool parameters — identical executed test cases to the explicit [DataRow] set. No test logic was changed.

Series

This is part of a per-project series migrating all boolean [DataRow] patterns to [CombinatorialData] across the SDK test suite.

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

…uild.Tests

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