Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Util
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv8601/test/Spring/Spring.Web.Tests/Util
Modified Files:
WebUtilsTests.cs
Log Message:
fixed SPRNET-762
Index: WebUtilsTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Util/WebUtilsTests.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** WebUtilsTests.cs 14 Mar 2008 12:02:46 -0000 1.8
--- WebUtilsTests.cs 19 Mar 2008 18:05:08 -0000 1.9
***************
*** 208,211 ****
--- 208,220 ----
Assert.AreEqual(appPath + "mypath/my.file", WebUtils.CombineVirtualPaths("/myotherdir/some.file", "~/mypath/my.file"));
}
+
+ [Test]
+ public void GetRelativePath()
+ {
+ // case-insensitive
+ Assert.AreEqual("/Mypath", WebUtils.GetRelativePath("/mydir/", "/myDir/Mypath"));
+ Assert.AreEqual("/mYpath", WebUtils.GetRelativePath("/Mydir", "/mYdir/mYpath"));
+ Assert.AreEqual("/myotherdir/mypath", WebUtils.GetRelativePath("/mydir", "/myotherdir/mypath"));
+ }
}
}
\ No newline at end of file
|