Skip to content

Commit

Permalink
PathTest.cs
Browse files Browse the repository at this point in the history
	Added new tests for GetFullPath () that include a path with
	. and ..

svn path=/trunk/mcs/; revision=14315
  • Loading branch information
Ben Maurer committed May 5, 2003
1 parent 0040417 commit b2e0089
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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.
Expand Down
4 changes: 4 additions & 0 deletions mcs/class/corlib/Test/System.IO/PathTest.cs
Expand Up @@ -314,6 +314,10 @@ public void TestGetFullPath ()
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);
Expand Down

0 comments on commit b2e0089

Please sign in to comment.