示例#1
0
 public void TestExpandUriWithRelativeUri()
 {
     AssertEqual("foobar.html", UriUtility.ExpandUri("foobar.html"));
     AssertEqual("../../foobar.html", UriUtility.ExpandUri("../../foobar.html"));
     AssertEqual(@"..\..\foobar.html", UriUtility.ExpandUri(@"..\..\foobar.html"));
 }
示例#2
0
 public void TestExpandUriWithRelativeLocalPath()
 {
     AssertMatches(@".*\\Test\\PauthorTestRunner\\bin\\.*\\PauthorTestRunner.exe",
                   UriUtility.ExpandUri("PauthorTestRunner.exe"));
 }
示例#3
0
 public void TestExpandUriWithAbsoluteUri()
 {
     AssertEqual("http://pauthor.codeplex.com/", UriUtility.ExpandUri("http://pauthor.codeplex.com"));
     AssertEqual("http://pauthor.codeplex.com/documentation",
                 UriUtility.ExpandUri("http://pauthor.codeplex.com/documentation"));
 }
示例#4
0
 public void TestExpandUriWithAbsoluteLocalPath()
 {
     AssertEqual(@"c:\Windows", UriUtility.ExpandUri(@"c:\Windows"));
     AssertEqual(@"c:\Windows", UriUtility.ExpandUri("file:///c:/Windows"));
 }