Merge pull request #273 from joncham/bug-getpid
[mono.git] / mcs / class / System.Drawing / Test / System.Drawing / TestImage.cs
index 1f6c8c7e20e9946158987b84998e52df06d6a445..1b430ae52e212d44aad8662dfd2c850caff888e6 100644 (file)
@@ -189,7 +189,7 @@ namespace MonoTests.System.Drawing{
                                int p = (int) Environment.OSVersion.Platform;
                                // libgdiplus (UNIX) doesn't lazy load the image so the
                                // stream may be freed (and this exception will never occur)
-                               if ((p == 4) || (p == 128))
+                               if ((p == 4) || (p == 128) || (p == 6))
                                        throw;
                        }
                }
@@ -381,5 +381,14 @@ namespace MonoTests.System.Drawing{
                                }
                        }
                }
+
+               [Test]
+#if !NET_2_0
+               [ExpectedException (typeof (InvalidOperationException))]
+#endif
+               public void XmlSerialization ()
+               {
+                       new XmlSerializer (typeof (Image));
+               }
        }
 }