X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FTest%2FSystem.Security.Cryptography%2FCryptoConfigTest.cs;h=3da3fe6276e9a1873c33aeb48e354bed424ba392;hb=64eff753bdeb747d6c7d35c3c7cc77fe5fd5cea4;hp=a66ee82f5e49043d5edb2161f70b0fb83bbfb6dc;hpb=f78e6f8fee273c6c80c8c36e7e1b2bbd8392b8cb;p=mono.git diff --git a/mcs/class/corlib/Test/System.Security.Cryptography/CryptoConfigTest.cs b/mcs/class/corlib/Test/System.Security.Cryptography/CryptoConfigTest.cs index a66ee82f5e4..3da3fe6276e 100644 --- a/mcs/class/corlib/Test/System.Security.Cryptography/CryptoConfigTest.cs +++ b/mcs/class/corlib/Test/System.Security.Cryptography/CryptoConfigTest.cs @@ -104,7 +104,7 @@ public class CryptoConfigTest { CreateFromName ("System.Security.Cryptography.HMACSHA1", "System.Security.Cryptography.HMACSHA1"); CreateFromName ("MACTripleDES", "System.Security.Cryptography.MACTripleDES"); CreateFromName ("System.Security.Cryptography.MACTripleDES", "System.Security.Cryptography.MACTripleDES"); -#if NET_2_0 + // new HMAC - new base class doesn't return anything with it's short name Assert.IsNull (CryptoConfig.CreateFromName ("HMAC"), "HMAC"); CreateFromName ("System.Security.Cryptography.HMAC", "System.Security.Cryptography.HMACSHA1"); @@ -123,13 +123,13 @@ public class CryptoConfigTest { CreateFromName ("RIPEMD-160", "System.Security.Cryptography.RIPEMD160Managed"); CreateFromName ("System.Security.Cryptography.RIPEMD160", "System.Security.Cryptography.RIPEMD160Managed"); // x.509 stuff -#if !TARGET_JVM //TargetJvmNotWorking - this algorithm should be added to System +#if !MOBILE CreateFromName ("X509Chain", "System.Security.Cryptography.X509Certificates.X509Chain"); -#endif -#endif + // note: CryptoConfig can create any object ! CreateFromName ("System.Security.Cryptography.CryptoConfig", "System.Security.Cryptography.CryptoConfig"); CreateFromName ("System.IO.MemoryStream", "System.IO.MemoryStream"); +#endif // non existing algo should return null (without exception) Assert.IsNull (CryptoConfig.CreateFromName ("NonExistingAlgorithm"), "NonExistingAlgorithm"); }