20 writes to Message
Microsoft.AspNetCore.Components.Analyzers.Tests (20)
ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs (1)
65
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty' defines CaptureUnmatchedValues but has an unsupported type 'string'. Use a type assignable from 'System.Collections.Generic.Dictionary<string, object>'.",
ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs (1)
53
Message
= message,
ComponentParameterSettersShouldBePublicTest.cs (3)
79
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty1' should have a public setter.",
89
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty2' should have a public setter.",
99
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty3' should have a public setter.",
ComponentParameterShouldBeAutoPropertiesTest.cs (2)
103
Message
= "Component parameter 'C.MyProp' should be auto property",
142
Message
= "Component parameter 'C.MyProp' should be auto property",
ComponentParametersShouldBePublicCodeFixProviderTest.cs (4)
46
Message
= "Component parameter 'ConsoleApplication1.TypeName.BadProperty1' should be public.",
86
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty1' should have a public setter.",
96
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty2' should have a public setter.",
106
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty3' should have a public setter.",
ComponentParametersShouldBePublicTest.cs (4)
64
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty1' should be public.",
74
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty2' should be public.",
84
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty3' should be public.",
94
Message
= "Component parameter 'ConsoleApplication1.TypeName.MyProperty4' should be public.",
ComponentParameterUsageAnalyzerTest.cs (5)
51
Message
= "Component parameter 'TestProperty' should not be set outside of its component.",
82
Message
= "Component parameter 'TestProperty' should not be set outside of its component.",
113
Message
= "Component parameter 'TestProperty' should not be set outside of its component.",
144
Message
= "Component parameter 'TestInt' should not be set outside of its component.",
175
Message
= "Component parameter 'TestInt' should not be set outside of its component.",
2 references to Message
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Verifiers\DiagnosticVerifier.cs (2)
172
if (actual.GetMessage(CultureInfo.InvariantCulture) != expected.
Message
)
178
expected.
Message
, actual.GetMessage(CultureInfo.InvariantCulture), FormatDiagnostics(analyzer, actual)));