public void TestResetZipConfig_withRebuild() { string repositoryPath = paths[1]; IO.File.WriteAllText(IO.Path.Combine(repositoryPath, "someOtherfile.txt"), DateTime.Now.ToString()); Gitmo g = new Gitmo(repositoryPath); string archiveID = "theid_clean_withrebuild"; string relativePathInRepository = ""; // whole thing string outPath = "Test"; g.Zip(archiveID, relativePathInRepository, outPath); string configFile = g.ResetZipConfig(archiveID, outPath); bool wasRebuilt = g.Zip(archiveID, relativePathInRepository, outPath); Assert.IsTrue(wasRebuilt, "Archive wasn't rebuilt after resetting the config"); Assert.IsTrue(IO.File.Exists(configFile), "Config File wasn't recreated"); }
public void TestResetZipConfig() { string repositoryPath = paths[1]; IO.File.WriteAllText(IO.Path.Combine(repositoryPath, "someOtherfile.txt"), DateTime.Now.ToString()); Gitmo g = new Gitmo(repositoryPath); string archiveID = "theid_clean"; string relativePathInRepository = ""; // whole thing string outPath = "Test"; g.Zip(archiveID, relativePathInRepository, outPath); string configFile = g.ResetZipConfig(archiveID, outPath); Assert.IsFalse(IO.File.Exists(configFile)); }