You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generic class/method pairing regression test can miss duplicate combinations #7529
The generic class/method inference regression fixture checks four passing rows, but it does not prove that all four distinct constructor/method argument combinations ran. A missing combination replaced by a duplicate could therefore pass this regression test.
tests/TUnit.TestProject/Bugs/_7451/ClassAndMethodParameterInferenceTests.cs accepts either constructor value (first, second) and either method value (3, 4) independently.
tests/TUnit.Engine.Tests/GenericMethodInferencePolicyTests.cs verifies total/pass/failure counts for that fixture, without comparing result identities.
Replacing one valid combination with a duplicate of another would preserve these assertions. This is a test coverage gap; no production pairing defect was observed. CodeRabbit identified it as a non-blocking suggestion in #7498.
Expected and actual
Expected: the regression test proves that (first,3), (first,4), (second,3) and (second,4) each execute once in both discovery modes.
Actual: four individually valid results satisfy the current assertions even if a pair repeats.
Please strengthen this fixture or its result assertions to verify the four distinct pairs in both modes, using stable result identity or an equivalent assertion that supports concurrent execution.
Activity
Strengthen generic class and method pairing regression (#7529) (#7558)