Author: atsushi
Date: 2006-04-25 08:53:56 -0400 (Tue, 25 Apr 2006)
New Revision: 59852

Modified:
   
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/ChangeLog
   
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509BasicConstraintsExtensionTest.cs
   
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509EnhancedKeyUsageExtensionTest.cs
   
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ExtensionTest.cs
   
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509KeyUsageExtensionTest.cs
   
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs
   
trunk/mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs
   trunk/mcs/class/System/Test/System.Security.Cryptography/ChangeLog
   trunk/mcs/class/System/Test/System.Security.Cryptography/OidTest.cs
Log:
2006-04-25  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * OidTest.cs,
          AsnEncodedDataTest.cs : commented locale-dependent tests
          (FriendlyName and Format(bool)) out.

        * X509EnhancedKeyUsageExtensionTest.cs,
          X509BasicConstraintsExtensionTest.cs,
          X509SubjectKeyIdentifierExtensionTest.cs,
          X509KeyUsageExtensionTest.cs,
          X509ExtensionTest.cs : commented locale-dependent tests
          (FriendlyName and Format(bool)) out.



Modified: 
trunk/mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs
===================================================================
--- 
trunk/mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs  
    2006-04-25 12:37:19 UTC (rev 59851)
+++ 
trunk/mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs  
    2006-04-25 12:53:56 UTC (rev 59852)
@@ -225,6 +225,7 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] // FriendlyName should not only be 
English.
                public void Build_X509EnhancedKeyUsageExtension ()
                {
                        AsnEncodedData aed = new AsnEncodedData (new byte[] { 
0x30, 0x05, 0x06, 0x03, 0x2A, 0x03, 0x04 });
@@ -232,15 +233,18 @@
                        Assert.AreEqual ("30 05 06 03 2a 03 04", aed.Format 
(false), "Format(false)");
                        aed.Oid = new Oid ("2.5.29.37");
                        // and now "AsnEncodedData" knows how to (magically) 
decode the data without involving the class
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
                        Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, aed.Format (true), "aed.Format(true)");
                        Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
aed.Format (false), "aed.Format(false)");
                        // compare with the output of the "appropriate" class
                        X509EnhancedKeyUsageExtension eku = new 
X509EnhancedKeyUsageExtension (aed, false);
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
                        Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, eku.Format (true), "eku.Format(true)");
                        Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
eku.Format (false), "eku.Format(false)");
                }
 
                [Test]
+               [Category ("NotDotNet")] // FriendlyName should not only be 
English.
                // note: important to emulate in Mono because we need it for 
SSL/TLS
                public void Build_NetscapeCertTypeExtension ()
                {
@@ -254,11 +258,13 @@
                        // note that the Fx doesn't "really" support this 
extension
                        // and strangely no NewLine is being appended to 
Format(true)
                        // finally this also means that the Oid "knowns" about 
oid not used in the Fx itself
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
                        Assert.AreEqual ("Netscape Cert Type", 
aed.Oid.FriendlyName, "FriendlyName");
                        // anyway the answer is most probably CryptoAPI
                }
 
                [Test]
+               [Category ("NotDotNet")] // FriendlyName should not only be 
English.
                // note: important to emulate in Mono because we need it for 
SSL/TLS
                public void Build_SubjectAltNameExtension ()
                {
@@ -271,6 +277,7 @@
                        Assert.AreEqual ("DNS Name=www.mono-project.com", 
aed.Format (false), "aed.Format(false)");
                        // note that the Fx doesn't "really" support this 
extension
                        // finally this also means that the Oid "knowns" about 
oid not used in the Fx itself
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
                        Assert.AreEqual ("Subject Alternative Name", 
aed.Oid.FriendlyName, "FriendlyName");
                        // anyway the answer is most probably CryptoAPI
                }

Modified: trunk/mcs/class/System/Test/System.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/System/Test/System.Security.Cryptography/ChangeLog  
2006-04-25 12:37:19 UTC (rev 59851)
+++ trunk/mcs/class/System/Test/System.Security.Cryptography/ChangeLog  
2006-04-25 12:53:56 UTC (rev 59852)
@@ -1,3 +1,9 @@
+2006-04-25  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * OidTest.cs,
+         AsnEncodedDataTest.cs : commented locale-dependent tests
+         (FriendlyName and Format(bool)) out.
+
 2005-09-26  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * Asn*.cs, Oid*.cs: Moved from System.Security.dll

Modified: trunk/mcs/class/System/Test/System.Security.Cryptography/OidTest.cs
===================================================================
--- trunk/mcs/class/System/Test/System.Security.Cryptography/OidTest.cs 
2006-04-25 12:37:19 UTC (rev 59851)
+++ trunk/mcs/class/System/Test/System.Security.Cryptography/OidTest.cs 
2006-04-25 12:53:56 UTC (rev 59852)
@@ -166,11 +166,13 @@
 
                        o = new Oid ("1.2.840.113549.1.7.1");
                        Assert.AreEqual ("1.2.840.113549.1.7.1", o.Value, "PKCS 
7 Data Value");
-                       Assert.AreEqual ("PKCS 7 Data", o.FriendlyName, "PKCS 7 
Data FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("PKCS 7 Data", o.FriendlyName, "PKCS 
7 Data FriendlyName");
 
                        o = new Oid ("1.2.840.113549.1.9.5");
                        Assert.AreEqual ("1.2.840.113549.1.9.5", o.Value, 
"Signing Time Value");
-                       Assert.AreEqual ("Signing Time", o.FriendlyName, 
"Signing Time FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Signing Time", o.FriendlyName, 
"Signing Time FriendlyName");
 
                        o = new Oid ("1.2.840.113549.3.7");
                        Assert.AreEqual ("1.2.840.113549.3.7", o.Value, "3des 
Value");

Modified: 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/ChangeLog
===================================================================
--- 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/ChangeLog
 2006-04-25 12:37:19 UTC (rev 59851)
+++ 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/ChangeLog
 2006-04-25 12:53:56 UTC (rev 59852)
@@ -1,3 +1,12 @@
+2006-04-25  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * X509EnhancedKeyUsageExtensionTest.cs,
+         X509BasicConstraintsExtensionTest.cs,
+         X509SubjectKeyIdentifierExtensionTest.cs,
+         X509KeyUsageExtensionTest.cs,
+         X509ExtensionTest.cs : commented locale-dependent tests
+         (FriendlyName and Format(bool)) out.
+
 2005-11-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * X500DistinguishedNameCas.cs: New. CAS tests (some are disabled).

Modified: 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509BasicConstraintsExtensionTest.cs
===================================================================
--- 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509BasicConstraintsExtensionTest.cs
      2006-04-25 12:37:19 UTC (rev 59851)
+++ 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509BasicConstraintsExtensionTest.cs
      2006-04-25 12:53:56 UTC (rev 59852)
@@ -50,7 +50,8 @@
                        Assert.IsFalse (bc.Critical, "Critical");
                        Assert.IsNull (bc.RawData, "RawData");
                        Assert.AreEqual (oid, bc.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, bc.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, bc.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual (String.Empty, bc.Format (true), 
"Format(true)");
                        Assert.AreEqual (String.Empty, bc.Format (false), 
"Format(false)");
                }
@@ -84,7 +85,8 @@
                        Assert.IsTrue (bc.Critical, "Critical");
                        Assert.AreEqual (8, bc.RawData.Length, "RawData");      
// original Oid ignored
                        Assert.AreEqual (oid, bc.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, bc.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, bc.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.IsTrue (bc.CertificateAuthority, 
"CertificateAuthority");
                        Assert.IsTrue (bc.HasPathLengthConstraint, 
"HasPathLengthConstraint");
                        Assert.AreEqual (1, bc.PathLengthConstraint, 
"PathLengthConstraint");
@@ -274,7 +276,8 @@
                        Assert.IsFalse (copy.Critical, "Critical");
                        Assert.AreEqual (2, copy.RawData.Length, "RawData");    
// original Oid ignored
                        Assert.AreEqual (oid, copy.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, copy.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, copy.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.IsFalse (copy.CertificateAuthority, 
"CertificateAuthority");
                        Assert.IsFalse (copy.HasPathLengthConstraint, 
"HasPathLengthConstraint");
                        Assert.AreEqual (0, copy.PathLengthConstraint, 
"PathLengthConstraint");

Modified: 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509EnhancedKeyUsageExtensionTest.cs
===================================================================
--- 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509EnhancedKeyUsageExtensionTest.cs
      2006-04-25 12:37:19 UTC (rev 59851)
+++ 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509EnhancedKeyUsageExtensionTest.cs
      2006-04-25 12:53:56 UTC (rev 59852)
@@ -50,7 +50,8 @@
                        Assert.IsFalse (eku.Critical, "Critical");
                        Assert.IsNull (eku.RawData, "RawData");
                        Assert.AreEqual (oid, eku.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, eku.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, eku.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual (String.Empty, eku.Format (true), 
"Format(true)");
                        Assert.AreEqual (String.Empty, eku.Format (false), 
"Format(false)");
                }
@@ -70,11 +71,13 @@
                        Assert.IsTrue (eku.Critical, "Critical");
                        Assert.AreEqual (7, eku.RawData.Length, "RawData");     
// original Oid ignored
                        Assert.AreEqual (oid, eku.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, eku.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, eku.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual (1, eku.EnhancedKeyUsages.Count, 
"EnhancedKeyUsages");
                        Assert.AreEqual ("1.2.3.4", 
eku.EnhancedKeyUsages[0].Value, "EnhancedKeyUsages Oid");
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, eku.Format (true), "Format(true)");
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
eku.Format (false), "Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, eku.Format (true), "Format(true)");
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
eku.Format (false), "Format(false)");
                }
 
                [Test]
@@ -127,8 +130,9 @@
                        X509EnhancedKeyUsageExtension eku = new 
X509EnhancedKeyUsageExtension (oc, true);
                        Assert.AreEqual ("30-00", BitConverter.ToString 
(eku.RawData), "RawData");
                        Assert.AreEqual (0, eku.EnhancedKeyUsages.Count, "Count 
0");
-                       Assert.AreEqual ("Information Not Available", 
eku.Format (true), "Format(true)");
-                       Assert.AreEqual ("Information Not Available", 
eku.Format (false), "Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Information Not Available", 
eku.Format (true), "Format(true)");
+                       //Assert.AreEqual ("Information Not Available", 
eku.Format (false), "Format(false)");
                        oc.Add (new Oid ("1.2.3.4"));
                        Assert.AreEqual (0, eku.EnhancedKeyUsages.Count, "Count 
still 0");
                        int n = eku.EnhancedKeyUsages.Add (new Oid ("1.2.3"));
@@ -142,9 +146,10 @@
                        Assert.AreEqual (2, eku.EnhancedKeyUsages.Count, "Count 
2");
                        Assert.AreEqual ("1.2.3.4", 
eku.EnhancedKeyUsages[0].Value, "Value - 1");
                        Assert.AreEqual ("1.3.6.1.5.5.7.3.1", 
eku.EnhancedKeyUsages[1].Value, "Value - 2");
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine + "Server Authentication (1.3.6.1.5.5.7.3.1)" + 
Environment.NewLine,
-                               eku.Format (true), "Format(true)");
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4), Server 
Authentication (1.3.6.1.5.5.7.3.1)", eku.Format (false), "Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine + "Server Authentication (1.3.6.1.5.5.7.3.1)" + 
Environment.NewLine,
+                       //      eku.Format (true), "Format(true)");
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4), Server 
Authentication (1.3.6.1.5.5.7.3.1)", eku.Format (false), "Format(false)");
                }
 
                [Test]
@@ -214,7 +219,8 @@
                        Assert.IsFalse (copy.Critical, "Critical");
                        Assert.AreEqual (7, copy.RawData.Length, "RawData");    
// original Oid ignored
                        Assert.AreEqual (oid, copy.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, copy.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, copy.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual (1, copy.EnhancedKeyUsages.Count, 
"EnhancedKeyUsages");
                        Assert.AreEqual ("1.2.3.4", 
copy.EnhancedKeyUsages[0].Value, "EnhancedKeyUsages Oid");
                }

Modified: 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ExtensionTest.cs
===================================================================
--- 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ExtensionTest.cs
      2006-04-25 12:37:19 UTC (rev 59851)
+++ 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ExtensionTest.cs
      2006-04-25 12:53:56 UTC (rev 59852)
@@ -62,10 +62,12 @@
                        Assert.IsTrue (ex.Critical, "Critical 2");
                        ex.Oid = new Oid ("2.5.29.37");
                        Assert.AreEqual ("2.5.29.37", ex.Oid.Value, 
"Oid.Value");
-                       Assert.AreEqual ("Enhanced Key Usage", 
ex.Oid.FriendlyName, "Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Enhanced Key Usage", 
ex.Oid.FriendlyName, "Oid.FriendlyName");
                        ex.RawData = new byte[] { 0x30, 0x05, 0x06, 0x03, 0x2A, 
0x03, 0x04 };
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, ex.Format (true), "Format(true)");
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
ex.Format (false), "Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, ex.Format (true), "Format(true)");
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
ex.Format (false), "Format(false)");
                }
 
                [Test]
@@ -84,9 +86,10 @@
                        Assert.IsTrue (ex.Critical, "Critical");
                        Assert.AreEqual (7, ex.RawData.Length, "RawData");      
// original Oid ignored
                        Assert.AreEqual ("2.5.29.37", ex.Oid.Value, 
"Oid.Value");
-                       Assert.AreEqual ("Enhanced Key Usage", 
ex.Oid.FriendlyName, "Oid.FriendlyName");
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, ex.Format (true), "Format(true)");
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
ex.Format (false), "Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Enhanced Key Usage", 
ex.Oid.FriendlyName, "Oid.FriendlyName");
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, ex.Format (true), "Format(true)");
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
ex.Format (false), "Format(false)");
                }
 
                [Test]
@@ -168,8 +171,9 @@
                {
                        AsnEncodedData aed = new AsnEncodedData (new Oid 
("2.5.29.37"), new byte[] { 0x30, 0x05, 0x06, 0x03, 0x2A, 0x03, 0x04 });
                        // this is recognized as an Enhanced Key Usages 
extension
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, aed.Format (true), "aed.Format(true)");
-                       Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
aed.Format (false), "aed.Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)" + 
Environment.NewLine, aed.Format (true), "aed.Format(true)");
+                       //Assert.AreEqual ("Unknown Key Usage (1.2.3.4)", 
aed.Format (false), "aed.Format(false)");
                        X509Ex ex = new X509Ex ();
                        // but won't be accepted by the CopyFrom method (no a 
X509Extension)
                        ex.CopyFrom (aed);
@@ -180,8 +184,9 @@
                {
                        X509Extension ex = new X509Extension (new Oid 
("2.16.840.1.113730.1.1"), new byte[] { 0x03, 0x02, 0x00, 0xFF }, false);
                        // strangely no NewLine is being appended to 
Format(true)
-                       Assert.AreEqual ("SSL Client Authentication, SSL Server 
Authentication, SMIME, Signature, Unknown cert type, SSL CA, SMIME CA, 
Signature CA (ff)", ex.Format (true), "aed.Format(true)");
-                       Assert.AreEqual ("SSL Client Authentication, SSL Server 
Authentication, SMIME, Signature, Unknown cert type, SSL CA, SMIME CA, 
Signature CA (ff)", ex.Format (false), "aed.Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("SSL Client Authentication, SSL 
Server Authentication, SMIME, Signature, Unknown cert type, SSL CA, SMIME CA, 
Signature CA (ff)", ex.Format (true), "aed.Format(true)");
+                       //Assert.AreEqual ("SSL Client Authentication, SSL 
Server Authentication, SMIME, Signature, Unknown cert type, SSL CA, SMIME CA, 
Signature CA (ff)", ex.Format (false), "aed.Format(false)");
                }
        }
 }

Modified: 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509KeyUsageExtensionTest.cs
===================================================================
--- 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509KeyUsageExtensionTest.cs
      2006-04-25 12:37:19 UTC (rev 59851)
+++ 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509KeyUsageExtensionTest.cs
      2006-04-25 12:53:56 UTC (rev 59852)
@@ -49,7 +49,8 @@
                        Assert.IsFalse (ku.Critical , "Critical");
                        Assert.IsNull (ku.RawData, "RawData");
                        Assert.AreEqual (oid, ku.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, ku.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, ku.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual (String.Empty, ku.Format (true), 
"Format(true)");
                        Assert.AreEqual (String.Empty, ku.Format (false), 
"Format(false)");
                        Assert.AreEqual (0, (int)ku.KeyUsages, "KeyUsages");
@@ -63,9 +64,10 @@
                        Assert.IsTrue (ku.Critical, "Critical");
                        Assert.AreEqual (3, ku.RawData.Length, "RawData");      
// original Oid ignored
                        Assert.AreEqual (oid, ku.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, ku.Oid.FriendlyName, 
"Oid.FriendlyName");
-                       Assert.AreEqual ("Information Not Available", ku.Format 
(true), "Format(true)");
-                       Assert.AreEqual ("Information Not Available", ku.Format 
(false), "Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, ku.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       //Assert.AreEqual ("Information Not Available", 
ku.Format (true), "Format(true)");
+                       //Assert.AreEqual ("Information Not Available", 
ku.Format (false), "Format(false)");
                        Assert.AreEqual (0, (int)ku.KeyUsages, "KeyUsages");
                }
 
@@ -117,8 +119,9 @@
                        X509KeyUsageExtension ku = new X509KeyUsageExtension 
(kuf, false);
                        Assert.AreEqual (0, (int)ku.KeyUsages, "KeyUsages");
                        Assert.AreEqual ("03-01-00", BitConverter.ToString 
(ku.RawData), "RawData");
-                       Assert.AreEqual ("Information Not Available", ku.Format 
(true), "Format(true)");
-                       Assert.AreEqual ("Information Not Available", ku.Format 
(false), "Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Information Not Available", 
ku.Format (true), "Format(true)");
+                       //Assert.AreEqual ("Information Not Available", 
ku.Format (false), "Format(false)");
                }
 
                private X509KeyUsageExtension ValidateKeyUsage 
(X509KeyUsageFlags kuf, string rawdata)
@@ -127,7 +130,8 @@
                        Assert.IsFalse (ku.Critical, kuf.ToString () + 
".Critical");
                        Assert.AreEqual (rawdata, BitConverter.ToString 
(ku.RawData), kuf.ToString () + ".RawData");
                        Assert.AreEqual (oid, ku.Oid.Value, kuf.ToString () + 
".Oid.Value");
-                       Assert.AreEqual (fname, ku.Oid.FriendlyName, 
kuf.ToString () + ".Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, ku.Oid.FriendlyName, 
kuf.ToString () + ".Oid.FriendlyName");
                        Assert.AreEqual (kuf, ku.KeyUsages, kuf.ToString () + 
".KeyUsages");
                        return ku;
                }
@@ -235,7 +239,8 @@
                        Assert.IsFalse (copy.Critical, "Critical");
                        Assert.AreEqual (4, copy.RawData.Length, "RawData");    
// original Oid ignored
                        Assert.AreEqual (oid, copy.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, copy.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, copy.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual (X509KeyUsageFlags.CrlSign, 
copy.KeyUsages, "KeyUsages");
                }
        }

Modified: 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs
===================================================================
--- 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs
  2006-04-25 12:37:19 UTC (rev 59851)
+++ 
trunk/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs
  2006-04-25 12:53:56 UTC (rev 59852)
@@ -50,7 +50,8 @@
                        Assert.IsFalse (ski.Critical, "Critical");
                        Assert.IsNull (ski.RawData, "RawData");
                        Assert.AreEqual (oid, ski.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual (String.Empty, ski.Format (true), 
"Format(true)");
                        Assert.AreEqual (String.Empty, ski.Format (false), 
"Format(false)");
                }
@@ -69,7 +70,8 @@
                        X509SubjectKeyIdentifierExtension ski = new 
X509SubjectKeyIdentifierExtension (aed, true);
                        Assert.IsTrue (ski.Critical, "Critical");
                        Assert.AreEqual (oid, ski.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual ("04-08-01-23-45-67-89-AB-CD-EF", 
BitConverter.ToString (ski.RawData), "RawData");
                        Assert.AreEqual ("0123456789ABCDEF", 
ski.SubjectKeyIdentifier, "SubjectKeyIdentifier");
                        Assert.AreEqual ("01 23 45 67 89 ab cd ef" + 
Environment.NewLine, ski.Format (true), "Format(true)");
@@ -116,8 +118,9 @@
                        X509SubjectKeyIdentifierExtension ski = new 
X509SubjectKeyIdentifierExtension (aed, true);
                        Assert.AreEqual (String.Empty, 
ski.SubjectKeyIdentifier, "SubjectKeyIdentifier");
                        Assert.AreEqual ("04-00", BitConverter.ToString 
(ski.RawData), "RawData");
-                       Assert.AreEqual ("Information Not Available", 
ski.Format (true), "Format(true)");
-                       Assert.AreEqual ("Information Not Available", 
ski.Format (false), "Format(false)");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual ("Information Not Available", 
ski.Format (true), "Format(true)");
+                       //Assert.AreEqual ("Information Not Available", 
ski.Format (false), "Format(false)");
                }
 
                [Test]
@@ -148,7 +151,8 @@
                        Assert.IsTrue (ski.Critical, "Critical");
                        Assert.AreEqual 
("04-14-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00", 
BitConverter.ToString (ski.RawData), "RawData");
                        Assert.AreEqual (oid, ski.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual 
("0000000000000000000000000000000000000000", ski.SubjectKeyIdentifier, 
"SubjectKeyIdentifier");
                        Assert.AreEqual ("00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00" + Environment.NewLine, ski.Format (true), 
"Format(true)");
                        Assert.AreEqual ("00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00", ski.Format (false), "Format(false)");
@@ -182,7 +186,8 @@
                        Assert.IsFalse (ski.Critical, "Critical");
                        Assert.AreEqual ("04-04-FF-FF-FF-FF", 
BitConverter.ToString (ski.RawData), "RawData");
                        Assert.AreEqual (oid, ski.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual ("FFFFFFFF", ski.SubjectKeyIdentifier, 
"SubjectKeyIdentifier");
                        Assert.AreEqual ("ff ff ff ff" + Environment.NewLine, 
ski.Format (true), "Format(true)");
                        Assert.AreEqual ("ff ff ff ff", ski.Format (false), 
"Format(false)");
@@ -195,7 +200,8 @@
                        Assert.IsTrue (ski.Critical, "Critical");
                        Assert.AreEqual ("04-03-FF-FF-FF", 
BitConverter.ToString (ski.RawData), "RawData");
                        Assert.AreEqual (oid, ski.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, ski.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual ("FFFFFF", ski.SubjectKeyIdentifier, 
"SubjectKeyIdentifier");
                        Assert.AreEqual ("ff ff ff" + Environment.NewLine, 
ski.Format (true), "Format(true)");
                        Assert.AreEqual ("ff ff ff", ski.Format (false), 
"Format(false)");
@@ -238,7 +244,8 @@
                        Assert.IsTrue (ski.Critical, "Critical");
                        Assert.AreEqual (String.Empty, BitConverter.ToString 
(ski.RawData), "RawData");
                        Assert.AreEqual ("1.2.3", ski.Oid.Value, "Oid.Value");
-                       Assert.IsNull (ski.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.IsNull (ski.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual (String.Empty, ski.Format (true), 
"Format(true)");
                        Assert.AreEqual (String.Empty, ski.Format (false), 
"Format(false)");
                }
@@ -283,7 +290,8 @@
                        Assert.IsFalse (copy.Critical, "Critical");
                        Assert.AreEqual ("04-01-FF", BitConverter.ToString 
(copy.RawData), "copy.RawData");
                        Assert.AreEqual (oid, copy.Oid.Value, "Oid.Value");
-                       Assert.AreEqual (fname, copy.Oid.FriendlyName, 
"Oid.FriendlyName");
+                       // FIXME: Don't expect that FriendlyName is English. 
This test fails under non-English Windows.
+                       //Assert.AreEqual (fname, copy.Oid.FriendlyName, 
"Oid.FriendlyName");
                        Assert.AreEqual ("FF", copy.SubjectKeyIdentifier, 
"SubjectKeyIdentifier");
                }
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to