Пример #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"));
 }