public void GenerateMissingArchive()
{
using (var tempDir = new TemporaryDirectory("0install-unit-tests"))
{
string feedPath = Path.Combine(tempDir, "feed.xml");
Directory.CreateDirectory(Path.Combine(tempDir, "impl"));
FileUtils.Touch(Path.Combine(tempDir, "impl", "file"));
var archive = new Archive {Href = new Uri("archive.zip", UriKind.Relative)};
var implementation = new Implementation {LocalPath = "impl", RetrievalMethods = {archive}};
implementation.AddMissing(new SilentTaskHandler(), new SimpleCommandExecutor {Path = feedPath});
implementation.LocalPath.Should().BeNull();
implementation.ManifestDigest.Should().NotBe(default(ManifestDigest));
archive.Size.Should().NotBe(0);
File.Exists(Path.Combine(tempDir, "archive.zip")).Should().BeTrue();
}
}