Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorBen Maurer <benm@mono-cvs.ximian.com>2003-05-06 03:10:15 +0400
committerBen Maurer <benm@mono-cvs.ximian.com>2003-05-06 03:10:15 +0400
commitb2e008962d776995b7b0fbeb907a4726a22c01a9 (patch)
tree7a62f6746feb962578b0c2f03c431fbc2160896e /mcs/class
parent004041750132308a24c9c593fa93eefc98012174 (diff)
PathTest.cs
Added new tests for GetFullPath () that include a path with . and .. svn path=/trunk/mcs/; revision=14315
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/corlib/Test/System.IO/ChangeLog7
-rw-r--r--mcs/class/corlib/Test/System.IO/PathTest.cs4
2 files changed, 10 insertions, 1 deletions
diff --git a/mcs/class/corlib/Test/System.IO/ChangeLog b/mcs/class/corlib/Test/System.IO/ChangeLog
index 810ae4798b9..f08f08b0ca0 100644
--- a/mcs/class/corlib/Test/System.IO/ChangeLog
+++ b/mcs/class/corlib/Test/System.IO/ChangeLog
@@ -1,7 +1,12 @@
+2003-05-04 Ben Maurer <bmaurer@users.sourceforge.net>
+ * PathTest.cs
+ Added new tests for GetFullPath () that include a path with
+ . and ..
+
2003-05-05 Ville Palo <vi64pa@kolumbus.fi>
* DirectoryInfoTest.cs: new file.
-
+
2003-05-04 Ville Palo <vi64pa@kolumbus.fi>
* FileInfoTest.cs: new file.
diff --git a/mcs/class/corlib/Test/System.IO/PathTest.cs b/mcs/class/corlib/Test/System.IO/PathTest.cs
index 911ef982d54..9f32c5479f5 100644
--- a/mcs/class/corlib/Test/System.IO/PathTest.cs
+++ b/mcs/class/corlib/Test/System.IO/PathTest.cs
@@ -314,6 +314,10 @@ namespace MonoTests.System.IO
string testFullPath = Path.GetFullPath ("foo.txt");
string expected = current + DSC + "foo.txt";
AssertEquals ("GetFullPath #01", expected, testFullPath);
+
+ testFullPath = Path.GetFullPath ("a/./../foo.txt");
+ expected = current + DSC + "foo.txt";
+ AssertEquals ("GetFullPath #02", expected, testFullPath);
try {
testFullPath = Path.GetFullPath (null);