public void NotSupportedHashAlgorithm() { try { var target = CertificateFactory.GetNotSupportedHashCertificate(); target.HashAlgorithm(); } catch (InvalidOperationException x) { if (x.Message.StartsWith("Could not find the certificate")) { Assert.Inconclusive("Could not find the certificate - change the parameter in CertificateFactory.GetNotSupportedHashCertificate()."); } else { throw; } } }