Author: spouliot
Date: 2006-09-19 09:50:39 -0400 (Tue, 19 Sep 2006)
New Revision: 65642
Modified:
trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs
Log:
2006-09-19 Sebastien Pouliot <[EMAIL PROTECTED]>
* TestGraphics.cs: Avoid test cases failure if the font object can't
be created during fixture's setup.
Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
2006-09-19 13:39:02 UTC (rev 65641)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
2006-09-19 13:50:39 UTC (rev 65642)
@@ -1,7 +1,9 @@
-2006-09-19 Sebastien Pouliot <[EMAIL PROTECTED]>
+2006-09-19 Sebastien Pouliot <[EMAIL PROTECTED]>
* GDIPlusTest.cs: Added test cases for GdipMeasureCharacterRanges and
StringFormat functions.
+ * TestGraphics.cs: Avoid test cases failure if the font object can't
+ be created during fixture's setup.
* TestStringFormat.cs: Increased coverage of the unit tests.
2006-09-18 Sebastien Pouliot <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs
2006-09-19 13:39:02 UTC (rev 65641)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs
2006-09-19 13:50:39 UTC (rev 65642)
@@ -46,13 +46,18 @@
[TestFixtureSetUp]
public void FixtureSetUp ()
{
- font = new Font ("Arial", 12);
+ try {
+ font = new Font ("Arial", 12);
+ }
+ catch {
+ }
}
[TestFixtureTearDown]
public void FixtureTearDown ()
{
- font.Dispose ();
+ if (font != null)
+ font.Dispose ();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches