public void NormalData()
        {
            var handshaker = new PerMessageDeflateClientExtensionHandshaker();
            WebSocketExtensionData data = handshaker.NewRequestData();

            Assert.Equal(PerMessageDeflateExtension, data.Name);
            Assert.Equal(ZlibCodecFactory.IsSupportingWindowSizeAndMemLevel ? 1 : 0, data.Parameters.Count);
        }
        public void CustomData()
        {
            var handshaker = new PerMessageDeflateClientExtensionHandshaker(6, true, 10, true, true);
            WebSocketExtensionData data = handshaker.NewRequestData();

            Assert.Equal(PerMessageDeflateExtension, data.Name);
            Assert.Contains(ClientMaxWindow, data.Parameters.Keys);
            Assert.Contains(ServerMaxWindow, data.Parameters.Keys);
            Assert.Equal("10", data.Parameters[ServerMaxWindow]);
        }