2009-01-02 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 2 Jan 2009 16:07:12 +0000 (16:07 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 2 Jan 2009 16:07:12 +0000 (16:07 -0000)
* PenTest.cs: Fix test case not to use a color that is "destroyed"
by another unit test. The nunit update changed the order in which
the test cases are executed.

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

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

index b57f670c8ef874f44940ca6d83510a264dd9d60b..09b6188b4be3a68df0c3a8bfa374e4c749a876aa 100644 (file)
@@ -1,3 +1,9 @@
+2009-01-02  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * PenTest.cs: Fix test case not to use a color that is "destroyed" 
+       by another unit test. The nunit update changed the order in which 
+       the test cases are executed.
+
 2008-12-23  Sebastien Pouliot  <sebastien@ximian.com>
 
        * GDIPlusTest.cs: Add MeasureCharacterRanges test cases around bug
index 4014e737b434075920f4f70b7d3abc6520027df6..a02b634350d03b15ec36e32f3c1fab8da52a88ac 100644 (file)
@@ -286,7 +286,9 @@ namespace MonoTests.System.Drawing {
                [Test]
                public void DashCap_Valid ()
                {
-                       using (Pen p = new Pen (Brushes.YellowGreen, 0)) {
+                       // note: YellowGreen is broken by a destructive test so we can't use it afterward
+                       // note: this worked with nunit 2.2 because this test was executed before the destructive one
+                       using (Pen p = new Pen (Brushes.Yellow, 0)) {
                                foreach (DashCap dc in Enum.GetValues (typeof (DashCap))) {
                                        p.DashCap = dc;
                                        Assert.AreEqual (dc, p.DashCap, dc.ToString ());