@@ -1610,15 +1610,15 @@ public partial class FirstModelValidator : IValidateOptions<FirstModel>
16101610
16111611 // Run the generator with C# 7.0 and verify that it fails.
16121612 var ( diagnostics , generatedSources ) = await RoslynTestUtils . RunGenerator (
1613- new OptionValidatorGenerator ( ) , refAssemblies . ToArray ( ) , new [ ] { source } , includeBaseReferences : true , LanguageVersion . CSharp7 ) . ConfigureAwait ( false ) ;
1613+ new OptionsValidatorGenerator ( ) , refAssemblies . ToArray ( ) , new [ ] { source } , includeBaseReferences : true , LanguageVersion . CSharp7 ) . ConfigureAwait ( false ) ;
16141614
16151615 Assert . NotEmpty ( diagnostics ) ;
16161616 Assert . Equal ( "SYSLIB1216" , diagnostics [ 0 ] . Id ) ;
16171617 Assert . Empty ( generatedSources ) ;
16181618
16191619 // Run the generator with C# 8.0 and verify that it succeeds.
16201620 ( diagnostics , generatedSources ) = await RoslynTestUtils . RunGenerator (
1621- new OptionValidatorGenerator ( ) , refAssemblies . ToArray ( ) , new [ ] { source } , includeBaseReferences : true , LanguageVersion . CSharp8 ) . ConfigureAwait ( false ) ;
1621+ new OptionsValidatorGenerator ( ) , refAssemblies . ToArray ( ) , new [ ] { source } , includeBaseReferences : true , LanguageVersion . CSharp8 ) . ConfigureAwait ( false ) ;
16221622
16231623 Assert . Empty ( diagnostics ) ;
16241624 Assert . Single ( generatedSources ) ;
@@ -1799,7 +1799,7 @@ private static CSharpCompilation CreateCompilationForOptionsSource(string assemb
17991799 refAssemblies . Add ( refAssembly ) ;
18001800 }
18011801
1802- return await RoslynTestUtils . RunGenerator ( new OptionValidatorGenerator ( ) , refAssemblies . ToArray ( ) , new List < string > { source } , includeBaseReferences : true , languageVersion ) . ConfigureAwait ( false ) ;
1802+ return await RoslynTestUtils . RunGenerator ( new OptionsValidatorGenerator ( ) , refAssemblies . ToArray ( ) , new List < string > { source } , includeBaseReferences : true , languageVersion ) . ConfigureAwait ( false ) ;
18031803 }
18041804
18051805 private static async Task < ( IReadOnlyList < Diagnostic > diagnostics , ImmutableArray < GeneratedSourceResult > generatedSources ) > RunGenerator (
@@ -1856,7 +1856,7 @@ private static CSharpCompilation CreateCompilationForOptionsSource(string assemb
18561856 assemblies . Add ( Assembly . GetAssembly ( typeof ( Microsoft . Extensions . Options . ValidateObjectMembersAttribute ) ) ! ) ;
18571857 }
18581858
1859- var result = await RoslynTestUtils . RunGenerator ( new OptionValidatorGenerator ( ) , assemblies . ToArray ( ) , new [ ] { text } )
1859+ var result = await RoslynTestUtils . RunGenerator ( new OptionsValidatorGenerator ( ) , assemblies . ToArray ( ) , new [ ] { text } )
18601860 . ConfigureAwait ( false ) ;
18611861
18621862 return result ;
0 commit comments