Пример #1
0
 public void PathValidatorTest_InvalidUrlPath(string path, string os)
 {
     if ((os == "windows" && RuntimeEnvironmentHelper.IsWindows) || (os == "unix-base" && !RuntimeEnvironmentHelper.IsWindows))
     {
         Assert.False(PathValidator.IsValidUrl(path));
     }
 }
Пример #2
0
 public void PathValidatorTest_ValidRelativePath(string path, string os)
 {
     if ((os == "windows" && RuntimeEnvironmentHelper.IsWindows) || (os == "unix-base" && !RuntimeEnvironmentHelper.IsWindows))
     {
         Assert.True(PathValidator.IsValidRelativePath(path));
     }
 }
Пример #3
0
 public void PathValidatorTest_ValidUrlPath(string path)
 {
     Assert.True(PathValidator.IsValidUrl(path));
 }