製品の SSL に関するバグを修正しようとしていますが、コードでは SSL が true に設定されていますが、コードの次の行では SSL が false のままであることに気付きました。このための単体テストを作成しましたが、単体テストは私の疑いを裏付けています。
[TestMethod]
public void SecureSocketLayerSetToTrue( )
{
var ldapConnection = new LdapConnection(
new LdapDirectoryIdentifier( "ldap.test.com", 636 ));
ldapConnection.SessionOptions.SecureSocketLayer = true;
Assert.IsTrue( ldapConnection.SessionOptions.SecureSocketLayer );
}
テストは失敗します。ここに何か欠けているものはありますか?