public void RelativeTo_WithParent_IsAbsoluteIsFalse() { var parent = new MockPath(@"c:\users\"); var path = new MockPath(@"c:\users\nemec\file.txt"); path.RelativeTo(parent); Assert.IsTrue(path.IsAbsolute()); }
public void IsAbsolute_WithParentDirectory_ReturnsFalse() { var path = new MockPath("../hello"); Assert.IsFalse(path.IsAbsolute()); }
public void IsAbsolute_WithAbsolutePath_ReturnsFalse() { var path = new MockPath("c:/hello/world"); Assert.IsTrue(path.IsAbsolute()); }
public void IsAbsolute_WithRelativePath_ReturnsFalse() { var path = new MockPath("hello/world"); Assert.IsFalse(path.IsAbsolute()); }
public void IsAbsolute_WithCurrentDirectory_ReturnsFalse() { var path = new MockPath(""); Assert.False(path.IsAbsolute()); }