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