37 writes to Message
Microsoft.AspNetCore.Components.Analyzers.Tests (37)
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. Manipulating component parameters can result in infinite loops and unintended side effects.",
142
Message
= "Component parameter 'C.MyProp' should be auto property. Manipulating component parameters can result in infinite loops and unintended side effects.",
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.",
InvokeAsyncOfObjectAnalyzerTest.cs (10)
137
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
171
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
205
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
240
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
345
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
379
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
414
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
425
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
459
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
497
Message
= "Use 'InvokeVoidAsync' instead of 'InvokeAsync<object>'. Return values of type 'object' cannot be deserialized and may cause serialization errors if the JavaScript function returns a non-serializable value.",
PersistentStateAnalyzerTest.cs (4)
117
Message
= "Property 'ConsoleApplication1.TestComponent.MyProperty' has [PersistentState] and a property initializer. This can be overwritten during parameter binding.",
149
Message
= "Property 'ConsoleApplication1.TestComponent.Input' has [PersistentState] and a property initializer. This can be overwritten during parameter binding.",
244
Message
= "Property 'ConsoleApplication1.TestComponent.MyProperty' has [PersistentState] and a property initializer. This can be overwritten during parameter binding.",
272
Message
= "Property 'ConsoleApplication1.TestComponent.MyProperty' has [PersistentState] and a property initializer. This can be overwritten during parameter binding.",
SupplyParameterFromFormAnalyzerTest.cs (3)
106
Message
= "Property 'ConsoleApplication1.TestComponent.MyProperty' has [SupplyParameterFromForm] and a property initializer. This can be overwritten with null during form posts.",
138
Message
= "Property 'ConsoleApplication1.TestComponent.Input' has [SupplyParameterFromForm] and a property initializer. This can be overwritten with null during form posts.",
233
Message
= "Property 'ConsoleApplication1.TestComponent.MyProperty' has [SupplyParameterFromForm] and a property initializer. This can be overwritten with null during form posts.",
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)));