Esempio n. 1
0
        public void Parse(InstallSection installSection, InstallData expected)
        {
            var parser = new InstallSectionParser();
            var actual = parser.Parse(installSection);

            actual.Should().BeEquivalentTo(expected, o => o.WithStrictOrdering());
        }
        public void Merge(InstallSection installSection, InstallData defaults, InstallData[] parentInstalls, InstallData expected)
        {
            var parser = new InstallSectionParser();
            var merger = new InstallSectionMerger();

            var currentConfigInstallData = parser.Parse(installSection, defaults?.CurrentConfigurationInstallFiles);
            var actual = merger.Merge(currentConfigInstallData, defaults, parentInstalls);

            actual.Should().BeEquivalentTo(expected, o => o.WithStrictOrdering());
        }