예제 #1
0
 public void AssertPathAbsoluteInValid()
 {
     Assert.Throws <Exception>(() => PathCheck.IsAbsolute(@"\"));
     Assert.Throws <Exception>(() => PathCheck.IsAbsolute(@"c:foo"));
     Assert.Throws <Exception>(() => PathCheck.IsAbsolute(@"cache"));
     Assert.Throws <Exception>(() => PathCheck.IsAbsolute(@"locales\"));
 }
예제 #2
0
 public void IsPathAbsoluteInValid()
 {
     Assert.False(PathCheck.IsAbsolute(@"\"));
     Assert.False(PathCheck.IsAbsolute(@"/"));
     Assert.False(PathCheck.IsAbsolute(@"C:"));
     Assert.False(PathCheck.IsAbsolute(@"."));
     Assert.False(PathCheck.IsAbsolute(@".."));
     Assert.False(PathCheck.IsAbsolute(@"cache"));
     Assert.False(PathCheck.IsAbsolute(@"cache\"));
 }
예제 #3
0
 public void IsPathAbsoluteValid()
 {
     Assert.True(PathCheck.IsAbsolute(@"C:\foo1"));
     Assert.True(PathCheck.IsAbsolute(@"c:\"));
     Assert.True(PathCheck.IsAbsolute(@"C:\foo2"));
     Assert.True(PathCheck.IsAbsolute(@"C:\foo2\"));
     Assert.True(PathCheck.IsAbsolute(@"c:/"));
     Assert.True(PathCheck.IsAbsolute(@"C:/foo1"));
     Assert.True(PathCheck.IsAbsolute(@"c:\"));
     Assert.True(PathCheck.IsAbsolute(@"C:/foo2"));
 }
예제 #4
0
 public void IsPathAbsoluteValid()
 {
     Assert.True(PathCheck.IsAbsolute(@"C:\foo1"));
     Assert.True(PathCheck.IsAbsolute(@"c:\"));
     Assert.True(PathCheck.IsAbsolute(@"C:\foo2"));
     Assert.True(PathCheck.IsAbsolute(@"C:\foo2\"));
     Assert.True(PathCheck.IsAbsolute(@"c:/"));
     Assert.True(PathCheck.IsAbsolute(@"C:/foo1"));
     Assert.True(PathCheck.IsAbsolute(@"c:\"));
     Assert.True(PathCheck.IsAbsolute(@"C:/foo2"));
     Assert.True(PathCheck.IsAbsolute(@"C:\Users\appveyor\AppData\Local\CefSharp\Tests\Cache"));
 }