Cannot run DataRow tests with array Type arguments under Native AOT
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #11999 di @Sergio0694 — integrata
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Start with the attached MSTestArrayRepro.zip project and publish it for Native AOT as described, then compare the results with CoreCLR. Focus on how the array Type argument in DataRow is passed when another test uses a single-argument DataRow. Done means both ArrayTypeRows cases run successfully under Native AOT.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
A test method containing an array Type argument in a [DataRow] fails under Native AOT when another test uses a single-argument [DataRow] .
Repro attached, test passes on CoreCLR but fails under Native AOT.
Version used
- MSTest / MSTest.Sdk: 4.5.1
- Microsoft.Testing.Platform: 2.5.1
- .NET SDK: 10.0.402
- .NET runtime / Native AOT compiler: 10.0.13
- Windows x64
Steps To Reproduce
Publish and run below repro project for AOT.
Expected behavior
All tests pass
Actual behavior
MSTest v4.5.1 (UTC 2026-10-07)
failed ArrayTypeRows ([System.Int32,"Int32","kind"]) (2ms)
Cannot run test method 'Repro.ArrayTests.ArrayTypeRows': Test data doesn't match method parameters. Either the count or types are different.
Test expected 3 parameter(s), with types 'Type, String, String',
but received 1 argument(s), with types 'Object[]'.
at Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Extensions.MethodInfoExtensions.GetInvokeResultWithParametersAsync(MethodInfo, Object, ParameterInfo[], Object[]) + 0x4a5
at Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.TestMethodInfo.<ExecuteInternalAsync>d__63.MoveNext() + 0x2c4
failed ArrayTypeRows ([System.Int32[],"Int32[]","kind"]) (0ms)
Cannot run test method 'Repro.ArrayTests.ArrayTypeRows': Test data doesn't match method parameters. Either the count or types are different.
Test expected 3 parameter(s), with types 'Type, String, String',
but received 1 argument(s), with types 'Object[]'.
at Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Extensions.MethodInfoExtensions.GetInvokeResultWithParametersAsync(MethodInfo, Object, ParameterInfo[], Object[]) + 0x4a5
at Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.TestMethodInfo.<ExecuteInternalAsync>d__63.MoveNext() + 0x2c4
Additional context
- Lingua principale
- C#
- Stelle
- 1.1k
- Fork
- 312
- Merge medio
- 8h 45m
- PR unite (30g)
- 402
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/testfx
-
type/automation type/tech-debt
Difficoltà 4/5 1-2 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area/dump needs/triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
microsoft/testfx#11981 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
type/automation type/tech-debt
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
I maintainer di solito rispondono entro 1 giorno
-
area/server-mode-jsonrpc
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
I maintainer di solito rispondono entro 1 giorno
-
[mutation-test-improver] Monthly Report 2026-10Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertatype/automation type/test-gap
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoft/testfx#11704 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/testfx
Issue simili
-
dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's MavenForse già presa @kou l’ha presa oggi. ApertaType: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/arrow-adbc#4947 ·
I maintainer di solito rispondono entro 1 giorno
-
:watch: Not Triaged CAC
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
dotnet/AspNetCore.Docs#38001 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Nimblesite/SharpLsp#468 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
elastic/ecs-dotnet#575 ·
-
alerts bug effort:S P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
nightscout/nocturne#2511 ·
I maintainer di solito rispondono entro 1 giorno