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