public void TestExportImplementations()
{
using (var implDir1 = new TemporaryDirectory("0install-unit-tests"))
using (var implDir2 = new TemporaryDirectory("0install-unit-tests"))
{
var storeMock = CreateMock <IStore>();
storeMock.Setup(x => x.GetPath(new ManifestDigest(null, null, "123", null))).Returns(implDir1);
storeMock.Setup(x => x.GetPath(new ManifestDigest(null, null, "abc", null))).Returns(implDir2);
_target.ExportImplementations(storeMock.Object, new SilentTaskHandler());
}
string contentDir = Path.Combine(_destination, "content");
File.Exists(Path.Combine(contentDir, "sha256=123.tbz2")).Should()
.BeTrue(because: "Implementation should be exported.");
File.Exists(Path.Combine(contentDir, "sha256=abc.tbz2")).Should()
.BeTrue(because: "Implementation should be exported.");
}