public void IsSupportedAlgorithm () { X509AsymmetricSecurityKey key = new X509AsymmetricSecurityKey (cert); Assert.IsTrue (key.IsSupportedAlgorithm (EncryptedXml.XmlEncRSA15Url), "#1"); Assert.IsFalse (key.IsSupportedAlgorithm (SignedXml.XmlDsigDSAUrl), "#2"); Assert.IsFalse (key.IsSupportedAlgorithm (SignedXml.XmlDsigHMACSHA1Url), "#3"); }
// huh? //[ExpectedException (typeof (ArgumentNullException))] public void IsSupportedAlgorithmNullAlgName () { X509AsymmetricSecurityKey key = new X509AsymmetricSecurityKey (cert); Assert.IsFalse (key.IsSupportedAlgorithm (null)); }