26 references to Frame
Microsoft.AspNetCore.SignalR.Common.Tests (26)
Internal\Protocol\JsonHubProtocolTests.cs (7)
50
input =
Frame
(input);
64
var expectedOutput =
Frame
(testData.Json);
87
var input =
Frame
(testData.Json);
100
var input =
Frame
("{\"type\":1,\"target\":\"Method\",\"arguments\":[1.1]}");
127
Assert.Equal(
Frame
(expectedJson), json);
160
Assert.Equal(
Frame
(expectedJson), json);
193
Assert.Equal(
Frame
(expectedJson), json);
Internal\Protocol\JsonHubProtocolTestsBase.cs (16)
119
var expectedOutput =
Frame
(testData.Json);
142
var input =
Frame
(testData.Json);
192
input =
Frame
(input);
203
var testData =
Frame
("{\"type\":1,\"target\":\"Target\",\"arguments\":[],\"streamIds\":[]}");
218
var input =
Frame
(testData.Json);
232
input =
Frame
(input);
252
input =
Frame
(input);
265
input =
Frame
(input);
279
var data = new ReadOnlySequence<byte>(Encoding.UTF8.GetBytes(
Frame
(input)));
294
var data = new ReadOnlySequence<byte>(Encoding.UTF8.GetBytes(
Frame
(input)));
306
var data = new ReadOnlySequence<byte>(Encoding.UTF8.GetBytes(
Frame
("{\"type\":1,\"invocationId\":\"42\",\"target\":\"foo\",\"arguments\":[[],{\"target\":\"foo2\"}]}")));
316
var input =
Frame
("{\"type\":2,\"invocationId\":\"123\",\"item\":{\"StrIngProp\":\"test\",\"DoublePrOp\":3.14159,\"IntProp\":43,\"DateTimeProp\":\"2019-06-03T22:00:00\",\"NuLLProp\":null,\"ByteARRProp\":\"AgQG\"}}");
344
var expectedOutput =
Frame
("{\"type\":1,\"invocationId\":\"123\",\"target\":\"Target\",\"arguments\":[{\"stringProp\":\"test\",\"doubleProp\":1.1,\"intProp\":0,\"dateTimeProp\":\"0001-01-01T00:00:00\",\"nullProp\":null,\"byteArrProp\":\"AgQG\"}]}");
440
var input =
Frame
(testData.Message);
472
var message =
Frame
(input);
488
var message =
Frame
(input);
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (3)
48
input =
Frame
(input);
62
var expectedOutput =
Frame
(testData.Json);
86
var input =
Frame
(testData.Json);