public void EnsureThat_FsUtils_CreateDir_CreatesDirectory() { var dir = new FsPath(_testDir, "testDirectory"); Assert.IsFalse(dir.IsExisting); dir.CreateDir(TestEnvironment.GetMockedLog()); Assert.IsTrue(dir.IsExisting); }
public void EnsureThat_FsUtils_CreateDir_DoesntCreateEmpty() { var dir = new FsPath(""); Assert.IsFalse(dir.IsExisting); dir.CreateDir(TestEnvironment.GetMockedLog()); Assert.IsFalse(dir.IsExisting); }
private void CreateFolderStructure(RuntimeSettings settings, ILog log) { string[] directories = { "epubtemp\\META-INF", "epubtemp\\OPS" }; foreach (var directory in directories) { FsPath path = settings.OutputDirectory.Combine(directory); path.CreateDir(log); } }