* 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
+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
[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 ());