Skip to content

Commit

Permalink
2004-05-31 Sebastien Pouliot <sebastien@ximian.com>
Browse files Browse the repository at this point in the history
	* PathTest.cs: Fixed ChangeExtension_BadExtension to run only on Windows.

svn path=/trunk/mcs/; revision=28605
  • Loading branch information
Sebastien Pouliot committed Jun 1, 2004
1 parent 6e3884f commit da69c6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mcs/class/corlib/Test/System.IO/PathTest.cs
Expand Up @@ -140,12 +140,12 @@ public void ChangeExtension_BadPath ()
}

[Test]
// [ExpectedException (typeof (ArgumentException))]
public void ChangeExtension_BadExtension ()
{
if (!Windows) throw new ArgumentException ("Test Only On Windows");
string fn = Path.ChangeExtension ("file.ext", "<");
AssertEquals ("Invalid filename", "file.<", fn);
if (Windows) {
string fn = Path.ChangeExtension ("file.ext", "<");
AssertEquals ("Invalid filename", "file.<", fn);
}
}

public void TestCombine ()
Expand Down

0 comments on commit da69c6c

Please sign in to comment.