14 instantiations of MessageSizeTestData
Microsoft.AspNetCore.Components.Server.Tests (14)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (14)
414
new
MessageSizeTestData
("InvocationMessage_WithoutInvocationId", new InvocationMessage("Target", new object[] { 1 }), 15),
415
new
MessageSizeTestData
("InvocationMessage_WithInvocationId", new InvocationMessage("1", "Target", new object[] { 1 }), 16),
416
new
MessageSizeTestData
("InvocationMessage_WithInvocationIdAndStreamId", new InvocationMessage("1", "Target", new object[] { 1 }, new string[] { "2" }), 18),
418
new
MessageSizeTestData
("CloseMessage_Empty", CloseMessage.Empty, 5),
419
new
MessageSizeTestData
("CloseMessage_WithError", new CloseMessage("error"), 10),
421
new
MessageSizeTestData
("StreamItemMessage_WithNullItem", new StreamItemMessage("1", null), 7),
422
new
MessageSizeTestData
("StreamItemMessage_WithItem", new StreamItemMessage("1", 1), 7),
424
new
MessageSizeTestData
("CompletionMessage_Empty", CompletionMessage.Empty("1"), 7),
425
new
MessageSizeTestData
("CompletionMessage_WithResult", CompletionMessage.WithResult("1", 1), 8),
426
new
MessageSizeTestData
("CompletionMessage_WithError", CompletionMessage.WithError("1", "error"), 13),
428
new
MessageSizeTestData
("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 15),
429
new
MessageSizeTestData
("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 17),
431
new
MessageSizeTestData
("CancelInvocationMessage", new CancelInvocationMessage("1"), 6),
433
new
MessageSizeTestData
("PingMessage", PingMessage.Instance, 3),
2 references to MessageSizeTestData
Microsoft.AspNetCore.Components.Server.Tests (2)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (2)
412
public static IDictionary<string,
MessageSizeTestData
> MessageSizeData => new[]
443
var
testData = MessageSizeData[testDataName];