Merge pull request #5194 from xmcclure/orbis-freeswept
[mono.git] / mcs / class / System / Test / System.Security.Cryptography.X509Certificates / X509ChainTest.cs
index 0a860c137ed04d3e169a1a7648aecfc8e63ae7f8..1a3c6fe43ccdcd60018641e29cc3afe7fc843ac4 100644 (file)
@@ -27,7 +27,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using NUnit.Framework;
 
@@ -41,7 +40,7 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
        [TestFixture]
        public class X509ChainTest {
 
-               private X509Certificate2Collection empty;
+               //private X509Certificate2Collection empty;
                private X509Certificate2Collection collection;
 
                private X509Certificate2 cert_empty;
@@ -56,7 +55,7 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
                        cert1 = new X509Certificate2 (X509Certificate2Test.farscape_pfx, "farscape", X509KeyStorageFlags.Exportable);
                        cert2 = new X509Certificate2 (Encoding.ASCII.GetBytes (X509Certificate2Test.base64_cert));
 
-                       empty = new X509Certificate2Collection ();
+                       //empty = new X509Certificate2Collection ();
                        collection = new X509Certificate2Collection ();
                        collection.Add (cert1);
                        collection.Add (cert2);
@@ -206,7 +205,6 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
                }
 
                [Test]
-               [Category ("InetAccess")]
                public void Build_Cert1_X509RevocationMode_Online ()
                {
                        X509Chain c = new X509Chain ();
@@ -284,14 +282,9 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
                public void StaticCreation () 
                {
                        X509Chain c = X509Chain.Create ();
-#if MOBILE
-                       Assert.IsNull (c);
-#else
                        CheckDefaultChain (c);
-#endif
                }
 
-#if !MOBILE
                [Test]
                public void CreateViaCryptoConfig ()
                {
@@ -299,8 +292,6 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
                        Assert.AreEqual (typeof (X509Chain), CryptoConfig.CreateFromName ("X509Chain").GetType (), "X509Chain");
                        Assert.IsNull (CryptoConfig.CreateFromName ("System.Security.Cryptography.X509Certificates.X509Chain"), "System.Security.Cryptography.X509Certificates.X509Chain");
                }
-#endif
        }
 }
 
-#endif