Exemple #1
0
        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));
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }