-2007-04-11 Sebastien Pouliot <sebastien@ximian.com>
+2007-04-11 Sebastien Pouliot <sebastien@ximian.com>
+ * GDIPlusTest.cs: Add a check for locking (LockBits) a bitmap twice
+ (without unlocking it first).
* SolidBrushTest.cs: Add a test case to see if a cloned solid brush
returns a named color and a unnamed color.
* TestBitmap.cs: Renable four test cases depending on LockBits. Add
Rectangle rect = new Rectangle (2, 2, 5, 5);
Assert.AreEqual (Status.Ok, GDIPlus.GdipBitmapLockBits (bmp, ref rect, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, bd), "locked");
+ Assert.AreEqual (Status.Win32Error, GDIPlus.GdipBitmapLockBits (bmp, ref rect, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, bd), "second lock");
+
Assert.AreEqual (rect.Width, bd.Width, "Width");
Assert.AreEqual (rect.Height, bd.Height, "Height");
Assert.AreEqual (PixelFormat.Format24bppRgb, bd.PixelFormat, "PixelFormat");