Cannot run DataRow tests with array Type arguments under Native AOT
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #11999 @Sergio0694 による — マージ済み
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- C#
- スター
- 1.1k
- フォーク
- 312
- 平均マージ
- 11時間 6分
- マージ済み PR(30日)
- 326
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/testfx のほかの issue
-
type/automation type/test-gap
難易度 3/5 半日 初心者へのやさしさ 15/100
メンテナーはふだん 1 日以内に返信
-
needs/triage
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
The productive version of Microsoft.Testing.Extensions.HangDump must not reference to a preview version of Microsoft.Diagnostics.NETCore.Client対応中かも @Evangelink が 6 日前に担当しました。 オープンarea/dump external/other
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
microsoft/testfx#11981 · コメント 6 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
type/automation type/tech-debt
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
メンテナーはふだん 1 日以内に返信
-
area/server-mode-jsonrpc
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
メンテナーはふだん 1 日以内に返信
microsoft/testfx の issue をすべて見る
似ている issue
-
area-blazor NativeAOT Regression
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
dotnet/aspnetcore#70236 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug evaluation required
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4118 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Format]: .dartオープンformats
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
KnifeLemon/Filee#980 ·
メンテナーはふだん 1 日以内に返信