public void TestOutputFolderDoesNotExist() { // Setup var siteBuilder = new SiteBuilder(fakeFileSystem); // Act siteBuilder.CleanFolder(output); // Asserts this.AssertDirectoryIsEmpty(output); }
public void TestOutputFolderExist() { // Setup var fakeFilePath = fakeFileSystem.Path.Combine(output, "archivo.txt"); fakeFileSystem.Directory.CreateDirectory(output); fakeFileSystem.File.WriteAllText(fakeFilePath, "hola mundo"); var siteBuilder = new SiteBuilder(fakeFileSystem); // Act siteBuilder.CleanFolder(output); // Asserts this.AssertDirectoryIsEmpty(output); }