From e34ea332def4718110e9a7efcf9e12bf7456c753 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 14 Nov 2019 12:13:44 +1000 Subject: Add failing test for decompiling a directory search under a registry search. --- .../DecompileFixture.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs') diff --git a/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs b/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs index c2520896..c7c80f6e 100644 --- a/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs @@ -66,6 +66,34 @@ namespace WixToolsetTest.CoreIntegration } } + [Fact(Skip = "Test demonstrates failure")] + public void CanDecompileNestedDirSearchUnderRegSearch() + { + var folder = TestData.Get(@"TestData\AppSearch"); + + using (var fs = new DisposableFileSystem()) + { + var intermediateFolder = fs.GetFolder(); + var outputPath = Path.Combine(intermediateFolder, @"Actual.wxs"); + + var result = WixRunner.Execute(new[] + { + "decompile", + Path.Combine(folder, "NestedDirSearchUnderRegSearch.msi"), + "-intermediateFolder", intermediateFolder, + "-o", outputPath + }); + + result.AssertSuccess(); + + var actual = File.ReadAllText(outputPath); + var actualFormatted = XDocument.Parse(actual, LoadOptions.PreserveWhitespace | LoadOptions.SetBaseUri | LoadOptions.SetLineInfo).ToString(); + var expected = XDocument.Load(Path.Combine(folder, "DecompiledNestedDirSearchUnderRegSearch.wxs"), LoadOptions.PreserveWhitespace | LoadOptions.SetBaseUri | LoadOptions.SetLineInfo).ToString(); + + Assert.Equal(expected, actualFormatted); + } + } + [Fact(Skip = "Test demonstrates failure")] public void CanDecompileOldClassTableDefinition() { -- cgit v1.2.3-55-g6feb