Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Util
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv28808/Util
Modified Files:
WebUtilsTests.cs
Log Message:
fixed SPRNET-723 (made Head control adhere to standards)
Index: WebUtilsTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Util/WebUtilsTests.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** WebUtilsTests.cs 1 Aug 2007 23:11:10 -0000 1.5
--- WebUtilsTests.cs 28 Nov 2007 23:26:28 -0000 1.6
***************
*** 136,139 ****
--- 136,153 ----
public void TestCreateAbsolutePath()
{
+ Assert.AreEqual("/", WebUtils.CreateAbsolutePath("", null));
+ Assert.AreEqual("/", WebUtils.CreateAbsolutePath("/", null));
+ Assert.AreEqual("/MyApp/", WebUtils.CreateAbsolutePath("/MyApp", null));
+ Assert.AreEqual("/MyApp/", WebUtils.CreateAbsolutePath("/MyApp", string.Empty));
+
+ Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath(null, "/MyPath"));
+ Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath(null, "~/MyPath"));
+
+ Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath(string.Empty, "/MyPath"));
+ Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath(string.Empty, "~/MyPath"));
+
+ Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath("/", "MyPath"));
+ Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath("/", "~/MyPath"));
+
Assert.AreEqual("/MyApp/MyPath", WebUtils.CreateAbsolutePath("/MyApp", "MyPath"));
Assert.AreEqual("/MyApp/MyPath", WebUtils.CreateAbsolutePath("/MyApp", "~/MyPath"));
***************
*** 141,147 ****
Assert.AreEqual("/MyApp/MyPath", WebUtils.CreateAbsolutePath("/MyApp/", "~/MyPath"));
Assert.AreEqual("/MyApp/MyPath", WebUtils.CreateAbsolutePath("/MyApp", "/MyApp/MyPath"));
- Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath("/", "MyPath"));
- Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath("/", "~/MyPath"));
- Assert.AreEqual("/MyPath", WebUtils.CreateAbsolutePath("", "~/MyPath"));
}
--- 155,158 ----
|