2007-05-22 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Tue, 22 May 2007 21:27:50 +0000 (21:27 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Tue, 22 May 2007 21:27:50 +0000 (21:27 -0000)
* GDIPlusTest.cs: Add test cases for GdipCreateFromHDC when HDC is
NULL. This match MS behavior as seen in (unfixed) bug #81709.

svn path=/trunk/mcs/; revision=77816

mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs

index 1c72c4416e5e5f992ea47aee767a467946ff602d..044e7fe81cd5f83147decec4a9e00a9689d11268 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-22  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * GDIPlusTest.cs: Add test cases for GdipCreateFromHDC when HDC is
+       NULL. This match MS behavior as seen in (unfixed) bug #81709.
+
 2007-05-18  Sebastien Pouliot  <sebastien@ximian.com>
 
        * TestBitmap.cs: Don't use IntPtr.ToInt32 as it may not represent the
index 640ed6a299800b750ae9524855ce4189aaede18a..8aaefc950949b99d325997c82e71a052849004cf 100644 (file)
@@ -304,6 +304,13 @@ namespace MonoTests.System.Drawing {
                        }
                }
 
+               [Test]
+               public void GdipCreateFromHDC_Null ()
+               {
+                       IntPtr graphics;
+                       Assert.AreEqual (Status.OutOfMemory, GDIPlus.GdipCreateFromHDC (IntPtr.Zero, out graphics), "GdipCreateFromHDC(null)");
+               }
+
                [Test]
                public void MeasureCharacterRanges ()
                {