1 write to Received
Microsoft.AspNetCore.Http.Connections.Tests (1)
TestWebSocketConnectionFeature.cs (1)
272
Received
= received;
11 references to Received
Microsoft.AspNetCore.Http.Connections.Tests (11)
WebSocketsTests.cs (11)
103
Assert.Single(clientSummary.
Received
);
104
Assert.True(clientSummary.
Received
[0].EndOfMessage);
105
Assert.Equal((WebSocketMessageType)Enum.Parse(typeof(WebSocketMessageType), expectedMessageType), clientSummary.
Received
[0].MessageType);
106
Assert.Equal("Hello", Encoding.UTF8.GetString(clientSummary.
Received
[0].Buffer));
415
Assert.Equal(2, messages.
Received
.Count);
418
Assert.Single(messages.
Received
[0].Buffer);
419
Assert.Equal(1, messages.
Received
[0].Buffer[0]);
420
Assert.False(messages.
Received
[0].EndOfMessage);
423
Assert.Single(messages.
Received
[1].Buffer);
424
Assert.Equal(15, messages.
Received
[1].Buffer[0]);
425
Assert.True(messages.
Received
[1].EndOfMessage);