public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Tls12AvailableWithBestCipherSuiteSelected != null
             ? Tls12AvailableWithBestCipherSuiteSelected.GetHashCode()
             : 0);
         hashCode = (hashCode * 397) ^ (Tls12AvailableWithBestCipherSuiteSelectedFromReverseList != null
                        ? Tls12AvailableWithBestCipherSuiteSelectedFromReverseList.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^ (Tls12AvailableWithSha2HashFunctionSelected != null
                        ? Tls12AvailableWithSha2HashFunctionSelected.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^ (Tls12AvailableWithWeakCipherSuiteNotSelected != null
                        ? Tls12AvailableWithWeakCipherSuiteNotSelected.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^ (Tls11AvailableWithBestCipherSuiteSelected != null
                        ? Tls11AvailableWithBestCipherSuiteSelected.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^ (Tls11AvailableWithWeakCipherSuiteNotSelected != null
                        ? Tls11AvailableWithWeakCipherSuiteNotSelected.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^ (Tls10AvailableWithBestCipherSuiteSelected != null
                        ? Tls10AvailableWithBestCipherSuiteSelected.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^ (Tls10AvailableWithWeakCipherSuiteNotSelected != null
                        ? Tls10AvailableWithWeakCipherSuiteNotSelected.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^
                    (Ssl3FailsWithBadCipherSuite != null ? Ssl3FailsWithBadCipherSuite.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TlsSecureEllipticCurveSelected != null
                        ? TlsSecureEllipticCurveSelected.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^ (TlsSecureDiffieHellmanGroupSelected != null
                        ? TlsSecureDiffieHellmanGroupSelected.GetHashCode()
                        : 0);
         hashCode = (hashCode * 397) ^
                    (TlsWeakCipherSuitesRejected != null ? TlsWeakCipherSuitesRejected.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #2
0
 public void SetUp()
 {
     _sut = new Tls12AvailableWithBestCipherSuiteSelected();
 }