public void Parse_ThrowsForEntriesWithDifferentCasing() { // Arrange var assembly = new TestAssembly( TestEntry.Directory("unused", TestEntry.File("sample.txt"), TestEntry.File("SAMPLE.TXT"))); // Act & Assert Assert.Throws <InvalidOperationException>(() => ManifestParser.Parse(assembly)); }
public void Parse_UsesDefaultManifestNameForManifest() { // Arrange var assembly = new TestAssembly( TestEntry.Directory("unused", TestEntry.File("sample.txt"))); // Act var manifest = ManifestParser.Parse(assembly); // Assert Assert.NotNull(manifest); }
public void Parse_FindsManifestWithCustomName() { // Arrange var assembly = new TestAssembly( TestEntry.Directory("unused", TestEntry.File("sample.txt")), manifestName: "Manifest.xml"); // Act var manifest = ManifestParser.Parse(assembly, "Manifest.xml"); // Assert Assert.NotNull(manifest); }