Skip to content

Use Combinatorial.MSTest for boolean DataRow tests in Microsoft.NET.ToolPack.Tests - #55016

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

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

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

This is part of a per-project series replacing full boolean cartesian-product [DataRow] sets with [CombinatorialData] from the Combinatorial.MSTest package.

What changed

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

No behavior change

[CombinatorialData] generates the same test cases as the removed [DataRow] combinations — it enumerates all combinations of the bool parameters automatically, producing identical executed test cases.

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

…oolPack.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