Esempio n. 1
0
        public void TestMethod6()
        {
            var    basePath = @"C:/Users/Administrator";
            string fullPath = null;

            var relativePath = RelativeHelper.FullPathToRelativePath(basePath, fullPath);

            Assert.IsTrue(relativePath.IsEquals(@""));
        }
Esempio n. 2
0
        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"));
        }
Esempio n. 3
0
        public void TestMethod5()
        {
            string basePath = null;
            var    fullPath = @"C:/Users/Administrator/source/repos";

            var relativePath = RelativeHelper.FullPathToRelativePath(basePath, fullPath);

            Assert.IsTrue(relativePath.IsEquals(@""));
        }