Base:
22 references to Message
Microsoft.AspNetCore.Components.Server.Tests (2)
ElementReferenceJsonConverterTest.cs (2)
92Assert.Equal("Unexpected JSON property 'id'.", ex.Message); 111Assert.Equal("__internalId is required.", ex.Message);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HttpRequestJsonExtensionsTests.cs (1)
61Assert.Equal(expectedMessage, ex.Message);
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\SystemTextJsonInputFormatter.cs (1)
123return new InputFormatterException(jsonException.Message, jsonException);
Microsoft.JSInterop.Tests (16)
Infrastructure\ByteArrayJsonConverterTest.cs (8)
26Assert.Equal("JSON serialization is attempting to deserialize an unexpected byte array.", ex.Message); 39Assert.Equal("Unexpected JSON Token EndObject, expected 'PropertyName'.", ex.Message); 52Assert.Equal("Unexpected JSON Property foo.", ex.Message); 92Assert.Equal("JSON serialization is attempting to deserialize an unexpected byte array.", ex.Message); 124Assert.Equal("Unexpected JSON Token PropertyName, expected 'EndObject'.", ex.Message); 140Assert.Equal("Unexpected JSON Token String, expected 'Number'.", ex.Message); 156Assert.Equal("Unexpected number, expected 32-bit integer.", ex.Message); 172Assert.Equal("Byte array -5 not found.", ex.Message);
Infrastructure\DotNetDispatcherTest.cs (1)
579Assert.Equal("Unexpected JSON token Number. Ensure that the call to `InvocableStaticWithParams' is supplied with exactly '3' parameters.", ex.Message);
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (2)
24Assert.Equal("Required property __dotNetObject not found.", ex.Message); 38Assert.Equal("Unexpected JSON property foo.", ex.Message);
Infrastructure\JSObjectReferenceJsonConverterTest.cs (2)
28Assert.Equal("Required property __jsObjectId not found.", ex.Message); 39Assert.Equal("Unexpected JSON property foo.", ex.Message);
Infrastructure\JSStreamReferenceJsonConverterTest.cs (3)
28Assert.Equal("Required property __jsObjectId not found.", ex.Message); 39Assert.Equal("Unexpected JSON property foo.", ex.Message); 73Assert.Equal("Required property __jsStreamReferenceLength not found.", ex.Message);
System.Text.Json (2)
System\Text\Json\JsonException.cs (1)
120info.AddValue("ActualMessage", Message, typeof(string));
System\Text\Json\ThrowHelper.Serialization.cs (1)
435string message = ex.Message;