internal void InternalValidateClusterThumbprintUpdateTest(
            string originalThumbprint,
            string originalSecondaryThumbprint,
            string updatedThumbprint,
            string updatedSecondaryThumbprint,
            ClusterManagementErrorCode?expectedErrorCode = null)
        {
            CertificateDescription currentCert = new CertificateDescription()
            {
                Thumbprint          = originalThumbprint,
                ThumbprintSecondary = originalSecondaryThumbprint,
            };

            CertificateDescription updatedCert = new CertificateDescription()
            {
                Thumbprint          = updatedThumbprint,
                ThumbprintSecondary = updatedSecondaryThumbprint,
            };

            Utility.ValidateExpectedValidationException(
                delegate
            {
                StandaloneSettingsValidator.ValidateClusterCertificateThumbprintAndCnUpdate(
                    StandaloneSettingsValidator.GetUniqueThumbprints(currentCert),
                    StandaloneSettingsValidator.GetUniqueThumbprints(updatedCert),
                    true,
                    true);
            },
                expectedErrorCode);
        }
        internal void InternalGetUniqueThumbprintsTest(CertificateDescription cert, int expectedThumbprints)
        {
            IEnumerable <string> thumbprints = StandaloneSettingsValidator.GetUniqueThumbprints(cert);

            Assert.AreEqual(expectedThumbprints, thumbprints.Count());
            Assert.IsTrue(thumbprints.Contains(cert.Thumbprint));
            if (expectedThumbprints > 1)
            {
                Assert.IsTrue(thumbprints.Contains(cert.ThumbprintSecondary));
            }
        }