Esempio n. 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"));
 }
Esempio n. 2
0
 public void TestExpandUriWithRelativeLocalPath()
 {
     AssertMatches(@".*\\Test\\PauthorTestRunner\\bin\\.*\\PauthorTestRunner.exe",
                   UriUtility.ExpandUri("PauthorTestRunner.exe"));
 }
Esempio n. 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"));
 }
Esempio n. 4
0
 public void TestExpandUriWithAbsoluteLocalPath()
 {
     AssertEqual(@"c:\Windows", UriUtility.ExpandUri(@"c:\Windows"));
     AssertEqual(@"c:\Windows", UriUtility.ExpandUri("file:///c:/Windows"));
 }