diff --git a/src/Compilers/CSharp/Test/Syntax/Parsing/ParserErrorMessageTests.cs b/src/Compilers/CSharp/Test/Syntax/Parsing/ParserErrorMessageTests.cs index 338b27e31f326680a1395e3b7a7d4c58fddf4310..5242e38bb3ec355346f6deb4a92081316f6e8aea 100644 --- a/src/Compilers/CSharp/Test/Syntax/Parsing/ParserErrorMessageTests.cs +++ b/src/Compilers/CSharp/Test/Syntax/Parsing/ParserErrorMessageTests.cs @@ -2173,7 +2173,7 @@ public static void Main() } "; - CreateCompilationWithMscorlib(text).VerifyDiagnostics( + CreateStandardCompilation(text).VerifyDiagnostics( // (7,26): error CS8124: Tuple must contain at least two elements. // var e = new (); Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").WithLocation(7, 26), @@ -2239,7 +2239,7 @@ public static void Main() } } "; - CreateCompilationWithMscorlib(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( + CreateStandardCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( // (7,25): error CS8059: Feature 'tuples' is not available in C# 6. Please use language version 7 or greater. // var e = new (); Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "()").WithArguments("tuples", "7").WithLocation(7, 25), @@ -2271,7 +2271,7 @@ public static void Main() } } "; - CreateCompilationWithMscorlib(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( + CreateStandardCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( // (7,26): error CS8124: Tuple must contain at least two elements. // var e = new (); Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")"),