File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
tests/Coherence.Tests/Net/Ssl Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ public void TestSslServerAuthentication()
71
71
}
72
72
73
73
[ Test , RequiresThread ]
74
- [ ExpectedException ( typeof ( IOException ) ) ]
75
74
public void TestSslClientAuthenticationException ( )
76
75
{
77
76
var location = new IPEndPoint ( IPAddress . Loopback , 5055 ) ;
@@ -86,13 +85,17 @@ public void TestSslClientAuthenticationException()
86
85
new SslClient ( location )
87
86
{
88
87
ServerName = "MyServerName" ,
89
- Protocol = SslProtocols . Default
88
+ Protocol = SslProtocols . None
90
89
} ;
91
90
try
92
91
{
93
92
client . Connect ( ) ;
94
- Thread . Sleep ( 1000 ) ;
95
93
string echo = client . Echo ( "Hello World" ) ;
94
+ Assert . Fail ( "Expected Exception, but got none" ) ;
95
+ }
96
+ catch ( Exception e )
97
+ {
98
+ Console . WriteLine ( "SslTests.TestSslClientAuthenticationException(), got expected exception: " + e . ToString ( ) ) ;
96
99
}
97
100
finally
98
101
{
You can’t perform that action at this time.
0 commit comments