public void WhenUsingNonSecureModeThenNoSecureSocketOptionWillBeUsed()
        {
            using IMailService client = new SmtpClient();

            var socketOptions = client.ConfigureSecurity(false);

            Assert.That(socketOptions, Is.EqualTo(SecureSocketOptions.None));
        }
        public void WhenUsingSecureModeThenItWillAllTlsSpecifications()
        {
            using IMailService client = new SmtpClient();

            client.ConfigureSecurity(true);

            Assert.That(client.SslProtocols & SslProtocols.Tls, Is.EqualTo(SslProtocols.Tls));
            Assert.That(client.SslProtocols & SslProtocols.Tls11, Is.EqualTo(SslProtocols.Tls11));
            Assert.That(client.SslProtocols & SslProtocols.Tls12, Is.EqualTo(SslProtocols.Tls12));
            Assert.That(client.SslProtocols & SslProtocols.Tls13, Is.EqualTo(SslProtocols.Tls13));
        }