public void SslStream_AuthenticateAsClient_Invalid_Fails() { SslStream stream = new SslStream(new NotImplementedStream()); Assert.Throws<NotSupportedException>(() => AuthenticateAsClient(stream, false, "host", null, (SslProtocols)4096, false)); }