public void TestMethod6() { var basePath = @"C:/Users/Administrator"; string fullPath = null; var relativePath = RelativeHelper.FullPathToRelativePath(basePath, fullPath); Assert.IsTrue(relativePath.IsEquals(@"")); }
public void TestMethod1() { var basePath = @"C:\Users\Administrator\source\repos\DwrUtility"; var fullPath = @"C:\Users\Administrator\source\repos"; var relativePath = RelativeHelper.FullPathToRelativePath(basePath, fullPath); Assert.IsTrue(relativePath.IsEquals("../repos")); }
public void TestMethod5() { string basePath = null; var fullPath = @"C:/Users/Administrator/source/repos"; var relativePath = RelativeHelper.FullPathToRelativePath(basePath, fullPath); Assert.IsTrue(relativePath.IsEquals(@"")); }