Skip to content

Commit c19839a

Browse files
author
David R. MacIver
committed
make Unit compatible with flattening
1 parent 0412a63 commit c19839a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

projects/client/Unit/src/unit/TestSsl.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ public void TestServerVerifiedIgnoringNameMismatch() {
9090
if (null == sslDir) return;
9191

9292
ConnectionFactory cf = new ConnectionFactory();
93-
cf.Parameters.Ssl.ServerName = "*";
94-
cf.Parameters.Ssl.AcceptablePolicyErrors = SslPolicyErrors.RemoteCertificateNameMismatch;
95-
cf.Parameters.Ssl.Enabled = true;
93+
cf.Ssl.ServerName = "*";
94+
cf.Ssl.AcceptablePolicyErrors = SslPolicyErrors.RemoteCertificateNameMismatch;
95+
cf.Ssl.Enabled = true;
9696
SendReceive(cf);
9797
}
9898

@@ -102,8 +102,8 @@ public void TestServerVerified() {
102102
if (null == sslDir) return;
103103

104104
ConnectionFactory cf = new ConnectionFactory();
105-
cf.Parameters.Ssl.ServerName = System.Net.Dns.GetHostName();
106-
cf.Parameters.Ssl.Enabled = true;
105+
cf.Ssl.ServerName = System.Net.Dns.GetHostName();
106+
cf.Ssl.Enabled = true;
107107
SendReceive(cf);
108108
}
109109

@@ -113,13 +113,13 @@ public void TestClientAndServerVerified() {
113113
if (null == sslDir) return;
114114

115115
ConnectionFactory cf = new ConnectionFactory();
116-
cf.Parameters.Ssl.ServerName = System.Net.Dns.GetHostName();
116+
cf.Ssl.ServerName = System.Net.Dns.GetHostName();
117117
Assert.IsNotNull(sslDir);
118-
cf.Parameters.Ssl.CertPath = sslDir + "/client/keycert.p12";
118+
cf.Ssl.CertPath = sslDir + "/client/keycert.p12";
119119
string p12Password = Environment.GetEnvironmentVariable("PASSWORD");
120120
Assert.IsNotNull(p12Password, "missing PASSWORD env var");
121-
cf.Parameters.Ssl.CertPassphrase = p12Password;
122-
cf.Parameters.Ssl.Enabled = true;
121+
cf.Ssl.CertPassphrase = p12Password;
122+
cf.Ssl.Enabled = true;
123123
SendReceive(cf);
124124
}
125125
}

0 commit comments

Comments
 (0)