public void WithClientCertificateRegistersGivenClientCertificate()
        {
            var connectionBuilder = new HubConnectionBuilder();
            var certificate       = new X509Certificate();

            connectionBuilder.WithClientCertificate(certificate);
            Assert.Contains(certificate, connectionBuilder.GetClientCertificates().Cast <X509Certificate>());
        }