Author: gert
Date: 2008-01-22 04:51:47 -0500 (Tue, 22 Jan 2008)
New Revision: 93492

Modified:
   trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs
Log:
 * TestGraphics.cs: Added test for bug #355141.


Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog        
2008-01-22 09:47:00 UTC (rev 93491)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog        
2008-01-22 09:51:47 UTC (rev 93492)
@@ -1,3 +1,7 @@
+2008-01-21  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * TestGraphics.cs: Added test for bug #355141.
+
 2008-01-13  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * GDIPlusTest.cs: Don't use internal Unit enum anymore.

Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs  
2008-01-22 09:47:00 UTC (rev 93491)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs  
2008-01-22 09:51:47 UTC (rev 93492)
@@ -1044,6 +1044,13 @@
                        bitmap.Dispose ();
                }
 
+               [Test] // bug #355141
+               public void FromHwnd_Zero ()
+               {
+                       Graphics g = Graphics.FromHwnd (IntPtr.Zero);
+                       Assert.IsNotNull (g);
+               }
+
                private void CheckDefaultProperties (string message, Graphics g)
                {
                        Assert.IsTrue (g.Clip.IsInfinite (g), message + 
".Clip.IsInfinite");

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to