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
TUnit0001 rejects convertible typed rows before optional test parameters #7617
TUnit0001 rejects a typed method data source whose row converts implicitly to the first test parameter when later test parameters are optional. The equivalent erased source runs successfully. Users cannot expose the concrete source type to Native AOT conversion generation without suppressing the analyzer.
Build with the analyzer enabled. Removing extra, or returning an erased IEnumerable<object[]> row containing the Row instance, avoids the diagnostic.
Expected and actual
Expected: accept the valid row-to-first-parameter conversion with the optional tail omitted. Actual: TUnit0001 reports that Row does not match (int, int), int. Keep rejection of required trailing parameters, and cover generated, reflection and Native AOT execution with the typed source.
Environment
SDK 10.0.403, net10.0. Observed while validating #7608 at c986b78; main at 3dfd584 still has the same analyzer conversion/count path. #7418 concerns optional parameters on the source method itself, which is a different case.
Please accept a convertible typed row when remaining test parameters may be omitted.
Activity
Fix typed method rows before optional test parameters (#7617)
Fix convertible method rows before params tails (#7617)
Keep diagnostics for expanded ITuple rows (#7617)
Reject ITuple interface rows with omitted tails (#7617)
Align optional row binding with runtime tuple preservation (#7617)
Accept convertible typed rows before optional test parameters (#7619)