37 writes to Message
Microsoft.AspNetCore.Components.Analyzers.Tests (37)
ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs (1)
65Message = "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)
53Message = message,
ComponentParameterSettersShouldBePublicTest.cs (3)
79Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty1' should have a public setter.", 89Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty2' should have a public setter.", 99Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty3' should have a public setter.",
ComponentParameterShouldBeAutoPropertiesTest.cs (2)
103Message = "Component parameter 'C.MyProp' should be auto property. Manipulating component parameters can result in infinite loops and unintended side effects.", 142Message = "Component parameter 'C.MyProp' should be auto property. Manipulating component parameters can result in infinite loops and unintended side effects.",
ComponentParametersShouldBePublicCodeFixProviderTest.cs (4)
46Message = "Component parameter 'ConsoleApplication1.TypeName.BadProperty1' should be public.", 86Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty1' should have a public setter.", 96Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty2' should have a public setter.", 106Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty3' should have a public setter.",
ComponentParametersShouldBePublicTest.cs (4)
64Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty1' should be public.", 74Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty2' should be public.", 84Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty3' should be public.", 94Message = "Component parameter 'ConsoleApplication1.TypeName.MyProperty4' should be public.",
ComponentParameterUsageAnalyzerTest.cs (5)
51Message = "Component parameter 'TestProperty' should not be set outside of its component.", 82Message = "Component parameter 'TestProperty' should not be set outside of its component.", 113Message = "Component parameter 'TestProperty' should not be set outside of its component.", 144Message = "Component parameter 'TestInt' should not be set outside of its component.", 175Message = "Component parameter 'TestInt' should not be set outside of its component.",
InvokeAsyncOfObjectAnalyzerTest.cs (10)
137Message = "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.", 171Message = "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.", 205Message = "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.", 240Message = "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.", 345Message = "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.", 379Message = "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.", 414Message = "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.", 425Message = "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.", 459Message = "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.", 497Message = "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)
117Message = "Property 'ConsoleApplication1.TestComponent.MyProperty' has [PersistentState] and a property initializer. This can be overwritten during parameter binding.", 149Message = "Property 'ConsoleApplication1.TestComponent.Input' has [PersistentState] and a property initializer. This can be overwritten during parameter binding.", 244Message = "Property 'ConsoleApplication1.TestComponent.MyProperty' has [PersistentState] and a property initializer. This can be overwritten during parameter binding.", 272Message = "Property 'ConsoleApplication1.TestComponent.MyProperty' has [PersistentState] and a property initializer. This can be overwritten during parameter binding.",
SupplyParameterFromFormAnalyzerTest.cs (3)
106Message = "Property 'ConsoleApplication1.TestComponent.MyProperty' has [SupplyParameterFromForm] and a property initializer. This can be overwritten with null during form posts.", 138Message = "Property 'ConsoleApplication1.TestComponent.Input' has [SupplyParameterFromForm] and a property initializer. This can be overwritten with null during form posts.", 233Message = "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)
172if (actual.GetMessage(CultureInfo.InvariantCulture) != expected.Message) 178expected.Message, actual.GetMessage(CultureInfo.InvariantCulture), FormatDiagnostics(analyzer, actual)));