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