Beispiel #1
0
        public void ConstructorNotConnected()
        {
            var ws = new TestableWebSocket(uri);

            Assert.Equal(ProtocolState.Closed, ws.State);
            Assert.Null(ws.socket);
        }
Beispiel #2
0
 public WebSocketTest()
 {
     uri = new Uri(@"ws://foo:1234");
     _ws = new TestableWebSocket(uri);
 }