11 references to TestReceiveByteArray
Microsoft.AspNetCore.Components.Server.Tests (11)
Circuits\RemoteJSRuntimeTest.cs (11)
22jsRuntime.TestReceiveByteArray(id: 0, data);
33var ex = Assert.Throws<ArgumentOutOfRangeException>(() => jsRuntime.TestReceiveByteArray(id: 0, data));
45jsRuntime.TestReceiveByteArray(id: 0, data);
56jsRuntime.TestReceiveByteArray(id: 0, data);
66jsRuntime.TestReceiveByteArray(id: 0, Array.Empty<byte>());
70jsRuntime.TestReceiveByteArray(i, Array.Empty<byte>());
73var ex = Assert.Throws<ArgumentOutOfRangeException>(() => jsRuntime.TestReceiveByteArray(5, new byte[] { 0 }));
84jsRuntime.TestReceiveByteArray(id: 0, new byte[30000]);
85var ex = Assert.Throws<ArgumentOutOfRangeException>(() => jsRuntime.TestReceiveByteArray(1, new byte[5000]));
96jsRuntime.TestReceiveByteArray(id: 0, new byte[30000]);
97jsRuntime.TestReceiveByteArray(id: 0, new byte[5000]);