+2006-08-07 Sebastien Pouliot <sebastien@ximian.com>
+
+ * GDIPlusTest.cs: Avoid leaking during tests.
+
2006-08-05 Sebastien Pouliot <sebastien@ximian.com>
* GDIPlusTest.cs: Some test cases for Graphics and Font related GDI+
[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 ()
{
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