@@ -302,7 +302,14 @@ private async Task VerifySignatureWorker(string api, string member, string signa
302302
303303 [ Theory ]
304304 [ MemberData ( nameof ( TestApiData ) ) ]
305- public async Task TestGenerateApi ( string api , string purpose , TestOptions options = TestOptions . None , string ? nativeMethodsJson = null )
305+ public async Task TestGenerateApiNet10 ( string api , string purpose , TestOptions options = TestOptions . None , string ? nativeMethodsJson = null )
306+ {
307+ await this . TestGenerateApiWorker ( api , purpose , options , "net10.0" , nativeMethodsJson ) ;
308+ }
309+
310+ [ Theory ]
311+ [ MemberData ( nameof ( TestApiData ) ) ]
312+ public async Task TestGenerateApiNet9 ( string api , string purpose , TestOptions options = TestOptions . None , string ? nativeMethodsJson = null )
306313 {
307314 await this . TestGenerateApiWorker ( api , purpose , options , "net9.0" , nativeMethodsJson ) ;
308315 }
@@ -316,7 +323,13 @@ public async Task TestGenerateApiNet8(string api, string purpose, TestOptions op
316323
317324 private async Task TestGenerateApiWorker ( string api , string purpose , TestOptions options , string tfm , string ? nativeMethodsJson )
318325 {
319- LanguageVersion langVersion = ( tfm == "net8.0" ) ? LanguageVersion . CSharp12 : LanguageVersion . CSharp13 ;
326+ LanguageVersion langVersion = tfm switch
327+ {
328+ "net8.0" => LanguageVersion . CSharp12 ,
329+ "net9.0" => LanguageVersion . CSharp13 ,
330+ "net10.0" => LanguageVersion . CSharp14 ,
331+ _ => throw new InvalidOperationException ( ) ,
332+ } ;
320333
321334 this . tfm = tfm ;
322335 this . compilation = this . starterCompilations [ tfm ] ;
@@ -553,7 +566,7 @@ public async Task VerifyOverloadPriorityAttributeInNet8(LanguageVersion langVers
553566 public async Task CrossWinMD_IInspectable (
554567 [ CombinatorialValues ( [ false , true ] ) ] bool allowMarshaling ,
555568 [ CombinatorialValues ( [ null , "TestPInvoke" ] ) ] string pinvokeClassName ,
556- [ CombinatorialValues ( [ "net8.0" , "net9.0" ] ) ] string tfm )
569+ [ CombinatorialValues ( [ "net8.0" , "net9.0" , "net10.0" ] ) ] string tfm )
557570 {
558571 this . compilation = this . starterCompilations [ tfm ] ;
559572 this . win32winmdPaths = [ .. this . win32winmdPaths ! , CustomIInspectableMetadataPath ] ;
0 commit comments