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
Source-gen runs only one class source when two class-level sources infer the same generic class instantiation; reflection runs both #7335
--reflection: C<int> runs with both class rows, so 2 tests (ctor 1 and ctor 7).
source-gen: the C<int> entry is scoped to the [Arguments(1)] row only, so 1 test (ctor 1).
This was reproduced on main (d43977c) in tests/TUnit.TestProject. It was first noted in #7208 ("Related difference"), which was found while handling a review thread on #7149, and it moved here so that #7208 covers only the class-level [MethodDataSource] fix.
Expected
Both modes run every class row that infers the instantiation: 2 tests, ctor 1 and ctor 7.
Activity