public void TestListAll() { Directory.CreateDirectory(Path.Combine(_tempDir, "sha1=test1")); Directory.CreateDirectory(Path.Combine(_tempDir, "sha1new=test2")); Directory.CreateDirectory(Path.Combine(_tempDir, "sha256=test3")); Directory.CreateDirectory(Path.Combine(_tempDir, "sha256new_test4")); Directory.CreateDirectory(Path.Combine(_tempDir, "temp=stuff")); _store.ListAll().Should().Equal( new ManifestDigest(sha1: "test1"), new ManifestDigest(sha1New: "test2"), new ManifestDigest(sha256: "test3"), new ManifestDigest(sha256New: "test4")); }
public void TestListAll() { Directory.CreateDirectory(Path.Combine(_tempDir, "sha1=test1")); Directory.CreateDirectory(Path.Combine(_tempDir, "sha1new=test2")); Directory.CreateDirectory(Path.Combine(_tempDir, "sha256=test3")); Directory.CreateDirectory(Path.Combine(_tempDir, "sha256new_test4")); Directory.CreateDirectory(Path.Combine(_tempDir, "temp=stuff")); CollectionAssert.AreEqual(new[] { new ManifestDigest(sha1: "test1"), new ManifestDigest(sha1New: "test2"), new ManifestDigest(sha256: "test3"), new ManifestDigest(sha256New: "test4") }, _store.ListAll()); }