public void excTest() { string name = "excTest.bat"; string path = FileManger.GetCurrentPath(); path = FileManger.GetUpPath(path, 2); path = FileManger.GetDownPath(path, "TestFiles"); path = FileManger.GetDownPath(path, name); Commander.exc(path); }
public void GetUpPathTest() { string orgPath = "C:\\Users\\david\\Desktop\\Git\\MyLibrary\\MyFileTests\\bin\\Debug"; string path = FileManger.GetUpPath(orgPath); Assert.AreEqual("C:\\Users\\david\\Desktop\\Git\\MyLibrary\\MyFileTests\\bin\\Debug", path); path = FileManger.GetUpPath(orgPath, 1); Assert.AreEqual("C:\\Users\\david\\Desktop\\Git\\MyLibrary\\MyFileTests\\bin", path); path = FileManger.GetUpPath(orgPath, 2); Assert.AreEqual("C:\\Users\\david\\Desktop\\Git\\MyLibrary\\MyFileTests", path); }