Merge pull request #2024 from BogdanovKirill/webrequesttest
[mono.git] / mcs / class / corlib / Test / System.IO / FileSystemInfoTest.cs
index d0467e4d12afa72b0b5dd873d1fa7912f93d63dc..6fbf68be609401d5991f99a662c0315e60395ccb 100644 (file)
@@ -72,7 +72,6 @@ namespace MonoTests.System.IO
                }
 
                [Test]
-               [Category("TargetJvmNotSupported")] // CreationTime not supported for TARGET_JVM
                public void CreationTimeFile ()
                {
                        if (Unix)
@@ -125,7 +124,6 @@ namespace MonoTests.System.IO
                }
 
                [Test]
-               [Category("TargetJvmNotSupported")] // CreationTime not supported for TARGET_JVM
                public void CreationTimeDirectory ()
                {
                        if (Unix)
@@ -166,7 +164,6 @@ namespace MonoTests.System.IO
                }
                
                [Test]
-               [Category("TargetJvmNotSupported")] // CreationTime not supported for TARGET_JVM
                public void CreationTimeNoFileOrDirectory ()
                {
                        string path = TempFolder + DSC + "FSIT.CreationTimeNoFile.Test";
@@ -216,7 +213,6 @@ namespace MonoTests.System.IO
                }
                
                [Test]
-               [Category("TargetJvmNotSupported")] // LastAccessTime not supported for TARGET_JVM
                public void DefaultLastAccessTime ()
                {
                        string path = TempFolder + DSC + "FSIT.DefaultLastAccessTime.Test";
@@ -239,7 +235,6 @@ namespace MonoTests.System.IO
                }
 
                [Test]
-               [Category("TargetJvmNotSupported")] // LastAccessTime not supported for TARGET_JVM
                public void LastAccessTime ()
                {
                        string path = TempFolder + DSC + "FSIT.LastAccessTime.Test";
@@ -282,7 +277,6 @@ namespace MonoTests.System.IO
                }
                
                [Test]
-               [Category("TargetJvmNotSupported")] // LastAccessTime not supported for TARGET_JVM
                public void DefaultLastWriteTime ()
                {
                        string path = TempFolder + DSC + "FSIT.DefaultLastWriteTime.Test";
@@ -344,7 +338,7 @@ namespace MonoTests.System.IO
                                DeleteDir (path);
                        }
                }
-
+#if !MOBILE
                [Test]
                public void Serialization ()
                {
@@ -359,7 +353,7 @@ namespace MonoTests.System.IO
                                info.GetObjectData (si, new StreamingContext ());
 
                                Assert.AreEqual (2, si.MemberCount, "#1");
-                               Assert.AreEqual (path, si.GetString ("OriginalPath"), "#2");
+                               Assert.AreEqual ("FSIT.Serialization.Test", si.GetString ("OriginalPath"), "#2");
                                Assert.AreEqual (path, si.GetString ("FullPath"), "#3");
                        } finally {
                                DeleteDir (path);
@@ -386,5 +380,6 @@ namespace MonoTests.System.IO
                                DeleteDir (path);
                        }
                }
+#endif
        }
 }