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\")); }
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\")); }
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")); }
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")); }