6 overrides of GetMessage
Microsoft.CodeAnalysis (5)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
115 references to GetMessage
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.App.Analyzers.Test (56)
RouteEmbeddedLanguage\RoutePatternAnalyzerTests.cs (11)
47Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.TemplateRoute_InvalidRouteTemplate), diagnostic.GetMessage(CultureInfo.InvariantCulture));
79Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.TemplateRoute_InvalidRouteTemplate), diagnostic.GetMessage(CultureInfo.InvariantCulture));
112Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.TemplateRoute_InvalidRouteTemplate), diagnostic.GetMessage(CultureInfo.InvariantCulture));
140Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.TemplateRoute_InvalidRouteTemplate), diagnostic.GetMessage(CultureInfo.InvariantCulture));
168Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.TemplateRoute_InvalidRouteTemplate), diagnostic.GetMessage(CultureInfo.InvariantCulture));
197Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.TemplateRoute_InvalidRouteTemplate), diagnostic.GetMessage(CultureInfo.InvariantCulture));
228Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.FormatTemplateRoute_InvalidLiteral("~hi?")), d.GetMessage(CultureInfo.InvariantCulture));
233Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.TemplateRoute_InvalidRouteTemplate), d.GetMessage(CultureInfo.InvariantCulture));
295Assert.Equal(Resources.FormatAnalyzer_RouteIssue_Message(Resources.AttributeRoute_TokenReplacement_UnclosedToken), d.GetMessage(CultureInfo.InvariantCulture));
335Assert.Equal(Resources.FormatAnalyzer_UnusedParameter_Message("id"), d.GetMessage(CultureInfo.InvariantCulture));
489Assert.Equal(Resources.FormatAnalyzer_UnusedParameter_Message("id"), d.GetMessage(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.CodeAnalysis (9)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Features.UnitTests (11)
EditAndContinue\RudeEditDiagnosticTests.cs (10)
87Assert.False(d.GetMessage().Contains("{"), kind.ToString());
93Assert.True(d.GetMessage().Contains("<1>"), kind.ToString());
94Assert.True(d.GetMessage().Contains("<2>"), kind.ToString());
95Assert.False(d.GetMessage().Contains("{"), kind.ToString());
101Assert.True(d.GetMessage().Contains("<1>"), kind.ToString());
102Assert.True(d.GetMessage().Contains("<2>"), kind.ToString());
103Assert.True(d.GetMessage().Contains("<3>"), kind.ToString());
104Assert.False(d.GetMessage().Contains("{"), kind.ToString());
110Assert.True(d.GetMessage().Contains("<1>"), kind.ToString());
111Assert.False(d.GetMessage().Contains("{"), kind.ToString());
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (8)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.Gen.Metrics.Unit.Tests (3)
Mvc.Api.Analyzers.Test (1)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.PrivateSourceGenerators.Tests (1)