2006-08-07 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / System.Drawing / Test / System.Drawing / GDIPlusTest.cs
index afa3222370731de1b293be1ac74206c6e8e48f85..d53813b3de0b2c908b12b749d296a6a68f1f0d7c 100644 (file)
@@ -246,6 +246,9 @@ namespace MonoTests.System.Drawing {
                [DllImport ("gdiplus.dll")]
                internal static extern Status GdipGetPathTypes (IntPtr path, [Out] byte[] types, int count);
 
+               [DllImport ("gdiplus.dll")]                
+               internal static extern Status GdipDeletePath (IntPtr path);
+
                [Test]
                public void GetPointCount_Zero ()
                {
@@ -264,6 +267,9 @@ namespace MonoTests.System.Drawing {
                        byte[] types = new byte[count];
                        Assert.AreEqual (Status.InvalidParameter, GdipGetPathTypes (path, types, count), "GdipGetPathTypes");
                        // can't get the types if the count is zero!
+
+                       Assert.AreEqual (Status.Ok, GdipDeletePath (path), "GdipDeletePath");
+                       Assert.AreEqual (Status.InvalidParameter, GdipDeletePath (IntPtr.Zero), "GdipDeletePath-null");
                }
 
                // Image