From da69c6c63c2bd80b772df42bc4e2b1b4716bbf12 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Tue, 1 Jun 2004 01:24:57 +0000 Subject: [PATCH] 2004-05-31 Sebastien Pouliot * PathTest.cs: Fixed ChangeExtension_BadExtension to run only on Windows. svn path=/trunk/mcs/; revision=28605 --- mcs/class/corlib/Test/System.IO/PathTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mcs/class/corlib/Test/System.IO/PathTest.cs b/mcs/class/corlib/Test/System.IO/PathTest.cs index 179cbd1e96557..8dac32d17f049 100644 --- a/mcs/class/corlib/Test/System.IO/PathTest.cs +++ b/mcs/class/corlib/Test/System.IO/PathTest.cs @@ -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 ()