47 references to GetMessage
Microsoft.AspNetCore.Razor.Language.UnitTests (34)
DefaultRazorIntermediateNodeLoweringPhaseTest.cs (3)
275
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
309
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
314
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
IntegrationTests\ComponentBindIntegrationTest.cs (1)
47
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
IntegrationTests\ComponentChildContentIntegrationTest.cs (4)
114
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
240
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
259
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
280
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
IntegrationTests\ComponentCodeGenerationTestBase.cs (1)
5661
Assert.Equal("Multiple components use the tag 'SomeComponent'. Components: Test2.SomeComponent, Test3.SomeComponent", d.
GetMessage
(CultureInfo.InvariantCulture));
IntegrationTests\ComponentDiagnosticRazorIntegrationTest.cs (9)
27
Assert.Equal("Unexpected closing tag 'mytag' with no matching start tag.", item.
GetMessage
(CultureInfo.CurrentCulture));
45
Assert.NotNull(diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
77
""", item.
GetMessage
(CultureInfo.CurrentCulture));
86
""", item.
GetMessage
(CultureInfo.CurrentCulture));
107
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
125
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
147
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
167
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
218
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
IntegrationTests\ComponentGenericTypeIntegrationTest.cs (4)
100
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
119
diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
374
diagnostic.
GetMessage
(CultureInfo.InvariantCulture));
437
ambiguityDiagnostic.
GetMessage
(CultureInfo.InvariantCulture));
IntegrationTests\ComponentImportsIntegrationTest.cs (10)
67
Assert.Equal(@"The '@page' directive specified in _Imports.razor file will not be imported. The directive must appear at the top of each Razor file", item.
GetMessage
(CultureInfo.CurrentCulture));
87
Assert.Equal(@"The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. Use '@using <namespace>' directive instead.", item.
GetMessage
(CultureInfo.CurrentCulture));
93
Assert.Equal(@"The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. Use '@using <namespace>' directive instead.", item.
GetMessage
(CultureInfo.CurrentCulture));
99
Assert.Equal(@"The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. Use '@using <namespace>' directive instead.", item.
GetMessage
(CultureInfo.CurrentCulture));
120
Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.
GetMessage
(CultureInfo.CurrentCulture));
138
Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.
GetMessage
(CultureInfo.CurrentCulture));
155
Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.
GetMessage
(CultureInfo.CurrentCulture));
176
Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.
GetMessage
(CultureInfo.CurrentCulture));
182
Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.
GetMessage
(CultureInfo.CurrentCulture));
188
Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.
GetMessage
(CultureInfo.CurrentCulture));
RazorDiagnosticTest.cs (2)
54
var result = diagnostic.
GetMessage
(CultureInfo.CurrentCulture);
70
var result = diagnostic.
GetMessage
(new CultureInfo("fr-FR"));
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\IntegrationTests\IntermediateNodeWriter.cs (1)
357
var diagnosticMessage = diagnostic.
GetMessage
(CultureInfo.InvariantCulture);
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\RazorDiagnostic.cs (2)
89
=>
GetMessage
(formatProvider: null);
118
var message = diagnostic.
GetMessage
(formatProvider);
SourceGenerators\Diagnostics\RazorDiagnostics.cs (2)
96
razorDiagnostic.
GetMessage
(CultureInfo.CurrentCulture),
97
razorDiagnostic.
GetMessage
(CultureInfo.CurrentCulture),
Microsoft.CodeAnalysis.Razor.UnitTests (5)
DefaultTagHelperDescriptorFactoryTest.cs (5)
798
var errorMessages = rule.GetAllDiagnostics().Select(diagnostic => diagnostic.
GetMessage
(CultureInfo.CurrentCulture)).ToArray();
995
var errorMessages = descriptor.GetAllDiagnostics().Select(diagnostic => diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
1051
var errorMessages = descriptor.GetAllDiagnostics().Select(diagnostic => diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
1093
var errorMessages = descriptor.GetAllDiagnostics().Select(diagnostic => diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
1135
var errorMessages = descriptor.GetAllDiagnostics().Select(diagnostic => diagnostic.
GetMessage
(CultureInfo.CurrentCulture));
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Diagnostics\RazorDiagnosticHelper.cs (1)
91
Message = razorDiagnostic.
GetMessage
(CultureInfo.InvariantCulture),
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Diagnostics\RazorDiagnosticHelperTest.cs (1)
28
Assert.Equal(razorDiagnostic.
GetMessage
(CultureInfo.InvariantCulture), diagnostic.Message);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Diagnostics\RazorDiagnosticHelperTest.cs (1)
28
Assert.Equal(razorDiagnostic.
GetMessage
(CultureInfo.InvariantCulture), diagnostic.Message);