예제 #1
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);
        }
예제 #2
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);
        }