public async Task WebSocketTransport_SetsState() { var sock = new FauxSock(); sock.RealState = WebSocketState.Open; var transport = new WebSocketTransport(sock); transport.Close(); transport.Dispose(); Assert.Equal(WebSocketState.Closed, sock.RealState); }
public async Task WebSocketTransport_Connects() { var sock = new FauxSock(); sock.RealState = WebSocketState.Open; var transport = new WebSocketTransport(sock); Assert.True(transport.IsConnected); transport.Close(); transport.Dispose(); }