19 instantiations of EnsureEnglishUICulture
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Emit\CompilationEmitTests.cs (2)
5189using (new EnsureEnglishUICulture()) 5470using (new EnsureEnglishUICulture())
Emit\ResourceTests.cs (1)
898using (new EnsureEnglishUICulture())
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTests.cs (2)
12275using (new EnsureEnglishUICulture()) 12360using (new EnsureEnglishUICulture())
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
848using (new EnsureEnglishUICulture())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NullableConversionTests.cs (1)
749using (new EnsureEnglishUICulture())
Semantics\SemanticErrorTests.cs (1)
21979using (new EnsureEnglishUICulture())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\LoadDirectiveTests.cs (1)
46using (new EnsureEnglishUICulture())
DocumentationComments\IncludeTests.cs (2)
26using var _ = new EnsureEnglishUICulture(); 89using var _ = new EnsureEnglishUICulture();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
LexicalAndXml\XmlDocCommentTests.cs (1)
52using (new EnsureEnglishUICulture())
Syntax\SyntaxFactoryTests.cs (1)
146using (new EnsureEnglishUICulture())
Microsoft.CodeAnalysis.UnitTests (2)
CommonCommandLineParserTests.cs (1)
985using (new EnsureEnglishUICulture())
Emit\CustomDebugInfoTests.cs (1)
152using (new EnsureEnglishUICulture())
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
DocumentationComments\DocCommentTests.vb (2)
41Using (new EnsureEnglishUICulture()) 12520Using (New EnsureEnglishUICulture())
DocumentationComments\IncludeTests.vb (1)
18Using New EnsureEnglishUICulture()
SymbolsTests\MetadataFileReferenceCompilationTests.vb (1)
51Using New EnsureEnglishUICulture
80 references to EnsureEnglishUICulture
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
4609mItem1.GetUseSiteDiagnostic().ToString(EnsureEnglishUICulture.PreferredOrNull));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\OverloadResolutionTests.cs (1)
7838Assert.Equal("(30,19): error CS0121: The call is ambiguous between the following methods or properties: 'A.B.X.Test(int)' and 'A.C.X.Test(int)'", DiagnosticFormatter.Instance.Format(comp.GetDiagnostics()[0], EnsureEnglishUICulture.PreferredOrNull));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
DocumentationComments\IncludeTests.cs (2)
26using var _ = new EnsureEnglishUICulture(); 89using var _ = new EnsureEnglishUICulture();
DocumentationComments\MethodDocumentationCommentTests.cs (2)
240Assert.Equal(@"<!-- Badly formed XML comment ignored for member ""M:Test.Main"" -->", main.GetDocumentationCommentXml(EnsureEnglishUICulture.PreferredOrNull).Trim()); 245Assert.Equal(@"<!-- Badly formed XML comment ignored for member ""M:Test.Main"" -->", main.GetDocumentationCommentXml(EnsureEnglishUICulture.PreferredOrNull).Trim());
Symbols\Source\BaseClassTests.cs (12)
85er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 112er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 141er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1001er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1046er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1054er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1107er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1115er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1142er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1148er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1199er.ToString(EnsureEnglishUICulture.PreferredOrNull)); 1205er.ToString(EnsureEnglishUICulture.PreferredOrNull));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
Diagnostics\LocationsTests.cs (3)
507Assert.Equal("test.txt(3,2): warning CS0000: msg", CSharpDiagnosticFormatter.Instance.Format(diagnostic, EnsureEnglishUICulture.PreferredOrNull)); 524Assert.Equal("test.txt(3,2): warning CS0000: msg", CSharpDiagnosticFormatter.Instance.Format(diagnosticWithoutMapping, EnsureEnglishUICulture.PreferredOrNull)); 527Assert.Equal("test2.txt(4,3): warning CS0000: msg", CSharpDiagnosticFormatter.Instance.Format(diagnosticWithMapping, EnsureEnglishUICulture.PreferredOrNull));
LexicalAndXml\LexicalTests.cs (18)
1159AssertEx.EqualOrDiff("error CS9202: Feature 'string escape character' is not available in C# 12.0. Please use language version 13.0 or greater.", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 1340AssertEx.EqualOrDiff("error CS9202: Feature 'string escape character' is not available in C# 12.0. Please use language version 13.0 or greater.", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3032Assert.Equal("error CS1021: Integral constant is too large", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3048Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3236Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3247Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3262Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3273Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3284Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3295Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3306Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3317Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3328Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3339Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3350Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3361Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3373Assert.Equal("error CS1013: Invalid number", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 3561Assert.Equal("error CS2043: 'id#' syntax is no longer supported. Use '$id' instead.", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull));
Parsing\ParserErrorMessageTests.cs (1)
2634Assert.Equal("error CS1029: #error: '\u0444\u0430\u0439\u043B'", CSharpDiagnosticFormatter.Instance.Format(error.WithLocation(Location.None), EnsureEnglishUICulture.PreferredOrNull));
Parsing\ParserRegressionTests.cs (4)
228Assert.Equal("(1,1201): error CS1056: Unexpected character '\\u003C'", actualErrors.ElementAt(200).ToString(EnsureEnglishUICulture.PreferredOrNull)); 229Assert.Equal("(1,1207): error CS1056: Unexpected character '\\u003E\\u003E\\u003E\\u003E'", actualErrors.ElementAt(201).ToString(EnsureEnglishUICulture.PreferredOrNull)); 246Assert.Equal("(1,2001): error CS1056: Unexpected character '\\U0000003C'", actualErrors.ElementAt(200).ToString(EnsureEnglishUICulture.PreferredOrNull)); 247Assert.Equal("(1,2011): error CS1056: Unexpected character '\\u003E\\u003E\\u003E\\u003E'", actualErrors.ElementAt(201).ToString(EnsureEnglishUICulture.PreferredOrNull));
Parsing\ParsingErrorRecoveryTests.cs (7)
7399Assert.True(syntaxTree.GetDiagnostics().Select(d => ((IFormattable)d).ToString(null, EnsureEnglishUICulture.PreferredOrNull)).SequenceEqual(new[] 7418Assert.True(syntaxTree.GetDiagnostics().Select(d => ((IFormattable)d).ToString(null, EnsureEnglishUICulture.PreferredOrNull)).SequenceEqual(new[] 7451Assert.True(syntaxTree.GetDiagnostics().Select(d => ((IFormattable)d).ToString(null, EnsureEnglishUICulture.PreferredOrNull)).SequenceEqual(new[] 7476Assert.True(syntaxTree.GetDiagnostics().Select(d => ((IFormattable)d).ToString(null, EnsureEnglishUICulture.PreferredOrNull)).SequenceEqual(new[] 7501Assert.True(syntaxTree.GetDiagnostics().Select(d => ((IFormattable)d).ToString(null, EnsureEnglishUICulture.PreferredOrNull)).SequenceEqual(new[] 7527Assert.True(syntaxTree.GetDiagnostics().Select(d => ((IFormattable)d).ToString(null, EnsureEnglishUICulture.PreferredOrNull)).SequenceEqual(new[] 7551Assert.True(syntaxTree.GetDiagnostics().Select(d => ((IFormattable)d).ToString(null, EnsureEnglishUICulture.PreferredOrNull)).SequenceEqual(new[]
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1828var preferred = EnsureEnglishUICulture.PreferredOrNull;
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\DiagnosticDescription.cs (3)
61return embedded.GetMessage(EnsureEnglishUICulture.PreferredOrNull); 65string.Format(EnsureEnglishUICulture.PreferredOrNull, _originalFormatSpecifiers[i], o) : 66string.Format(EnsureEnglishUICulture.PreferredOrNull, "{0}", o);
Diagnostics\DiagnosticExtensions.cs (1)
53Verify(actual, expected, errorCodeOnly: fallbackToErrorCodeOnlyForNonEnglish && EnsureEnglishUICulture.PreferredOrNull != null);
Microsoft.CodeAnalysis.UnitTests (4)
CommonCommandLineParserTests.cs (1)
57var preferred = EnsureEnglishUICulture.PreferredOrNull;
Diagnostics\DiagnosticLocalizationTests.cs (3)
71if (EnsureEnglishUICulture.PreferredOrNull == null) 89if (EnsureEnglishUICulture.PreferredOrNull == null) 115if (EnsureEnglishUICulture.PreferredOrNull == null)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\BinaryOperators.vb (1)
1500Assert.Equal("Length of String constant resulting from concatenation exceeds System.Int32.MaxValue. Try splitting the string into multiple constants.", err.GetMessage(EnsureEnglishUICulture.PreferredOrNull))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (8)
DocumentationComments\DocCommentTests.vb (2)
12127Dim preferred = Roslyn.Test.Utilities.EnsureEnglishUICulture.PreferredOrNull 12168Dim preferred = Roslyn.Test.Utilities.EnsureEnglishUICulture.PreferredOrNull
SymbolsTests\Source\BaseClassTests.vb (6)
865Assert.Equal("error BC30916: Type 'ClassA' is not supported because it either directly or indirectly inherits from itself.", er.ToString(EnsureEnglishUICulture.PreferredOrNull)) 926Assert.Equal("error BC30916: Type 'ClassA' is not supported because it either directly or indirectly inherits from itself.", er.ToString(EnsureEnglishUICulture.PreferredOrNull)) 967Assert.Equal("error BC30916: Type 'ClassA' is not supported because it either directly or indirectly inherits from itself.", er.ToString(EnsureEnglishUICulture.PreferredOrNull)) 1022Assert.Equal("error BC30916: Type 'ClassB' is not supported because it either directly or indirectly inherits from itself.", er.ToString(EnsureEnglishUICulture.PreferredOrNull)) 1026Assert.Equal("error BC30916: Type 'ClassA' is not supported because it either directly or indirectly inherits from itself.", er.ToString(EnsureEnglishUICulture.PreferredOrNull)) 1096Assert.Equal("error BC30916: Type 'ClassA' is not supported because it either directly or indirectly inherits from itself.", er.ToString(EnsureEnglishUICulture.PreferredOrNull))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
IncrementalParser\IncrementalParser.vb (2)
825Assert.Equal("Syntax error.", oldTree.GetDiagnostics()(0).GetMessage(EnsureEnglishUICulture.PreferredOrNull)) 836Assert.Equal("Syntax error.", tmpTree.GetDiagnostics()(0).GetMessage(EnsureEnglishUICulture.PreferredOrNull))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (9)
CompilationTestUtils.vb (7)
1005Dim message = e.Id + ": " + e.GetMessage(EnsureEnglishUICulture.PreferredOrNull) 1044Return comparer.Compare(diag1.GetMessage(EnsureEnglishUICulture.PreferredOrNull), diag2.GetMessage(EnsureEnglishUICulture.PreferredOrNull)) 1063Return comparer.Compare(diag1.GetMessage(EnsureEnglishUICulture.PreferredOrNull), diag2.GetMessage(EnsureEnglishUICulture.PreferredOrNull)) 1072Return comparer.Compare(diag1.GetMessage(EnsureEnglishUICulture.PreferredOrNull), diag2.GetMessage(EnsureEnglishUICulture.PreferredOrNull))
ParserTestUtilities.vb (2)
565output.AppendLine(GetErrorString(e.Code, e.GetMessage(EnsureEnglishUICulture.PreferredOrNull), span.Start.ToString(), span.End.ToString())) 610If message IsNot Nothing AndAlso message <> syntaxError.GetMessage(EnsureEnglishUICulture.PreferredOrNull) Then