@@ -40,6 +40,23 @@ public void SessionPoolBuilder_AcceptsClientCertificateConfiguration()
4040 Assert . That ( sessionPool , Is . Not . Null ) ;
4141 }
4242
43+ [ Test ]
44+ public void SessionPoolBuilder_AcceptsObsoleteCertificatePath ( )
45+ {
46+ #pragma warning disable CS0618
47+ var sessionPool = new SessionPool . Builder ( )
48+ . SetHost ( "localhost" )
49+ . SetPort ( 6667 )
50+ . SetUseSsl ( true )
51+ . SetCertificatePath ( "/tmp/client.pfx" )
52+ . SetClientCertificatePassword ( "secret" )
53+ . SetRootCertificatePath ( "/tmp/root-ca.pem" )
54+ . Build ( ) ;
55+ #pragma warning restore CS0618
56+
57+ Assert . That ( sessionPool , Is . Not . Null ) ;
58+ }
59+
4360 [ Test ]
4461 public void TableSessionPoolBuilder_AcceptsClientCertificateConfiguration ( )
4562 {
@@ -55,6 +72,23 @@ public void TableSessionPoolBuilder_AcceptsClientCertificateConfiguration()
5572 Assert . That ( tableSessionPool , Is . Not . Null ) ;
5673 }
5774
75+ [ Test ]
76+ public void TableSessionPoolBuilder_AcceptsObsoleteCertificatePath ( )
77+ {
78+ #pragma warning disable CS0618
79+ var tableSessionPool = new TableSessionPool . Builder ( )
80+ . SetHost ( "localhost" )
81+ . SetPort ( 6667 )
82+ . SetUseSsl ( true )
83+ . SetCertificatePath ( "/tmp/client.pfx" )
84+ . SetClientCertificatePassword ( "secret" )
85+ . SetRootCertificatePath ( "/tmp/root-ca.pem" )
86+ . Build ( ) ;
87+ #pragma warning restore CS0618
88+
89+ Assert . That ( tableSessionPool , Is . Not . Null ) ;
90+ }
91+
5892 [ Test ]
5993 public void ConnectionStringBuilder_ParsesMtlsConfiguration ( )
6094 {
0 commit comments