Repository navigation
Use Combinatorial.MSTest for boolean DataRow tests in Microsoft.DotNet.MSBuildSdkResolver.Tests - #55008
Closed
Evangelink wants to merge 1 commit into
Closed
Use Combinatorial.MSTest for boolean DataRow tests in Microsoft.DotNet.MSBuildSdkResolver.Tests#55008Evangelink wants to merge 1 commit into
Evangelink wants to merge 1 commit into
Conversation
…t.MSBuildSdkResolver.Tests
Contributor
|
Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label. |
Evangelink
had a problem deploying
to
copilot-pat-pool
August 26, 2026 12:59 — with
GitHub Actions
Failure
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace full boolean cartesian-product
[DataRow]sets with[CombinatorialData]in theMicrosoft.DotNet.MSBuildSdkResolver.Testsproject.What changed
GivenAnMSBuildSdkResolver.cshad pairs of[DataRow(true)]/[DataRow(false)]replaced by a single[CombinatorialData]attribute. The executed test cases are identical — MSTest's combinatorial engine expands eachboolparameter totrueandfalseautomatically.Microsoft.DotNet.MSBuildSdkResolver.Tests.csprojgains a new<ItemGroup>with:<PackageReference Include="Combinatorial.MSTest" />— picks up the version from the repo's central package management.<Using Include="Combinatorial.MSTest" />— makes[CombinatorialData]available globally in the project without an explicitusingdirective in each file.Why
Enumerating every boolean combination by hand is noisy and error-prone.
[CombinatorialData]expresses the same intent in one line and scales automatically if additional bool parameters are added later.This is part of a per-project series applying the same mechanical refactor across the repo.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com