diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-11-14 12:13:44 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-11-14 12:18:44 +1000 |
| commit | e34ea332def4718110e9a7efcf9e12bf7456c753 (patch) | |
| tree | c335ac029f5af9541fd61e30dba98005ed465ff4 /src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs | |
| parent | a79a2bc97a428f635cccd58935c3bcd059743da4 (diff) | |
| download | wix-e34ea332def4718110e9a7efcf9e12bf7456c753.tar.gz wix-e34ea332def4718110e9a7efcf9e12bf7456c753.tar.bz2 wix-e34ea332def4718110e9a7efcf9e12bf7456c753.zip | |
Add failing test for decompiling a directory search under a registry search.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs | 28 |
1 files changed, 28 insertions, 0 deletions
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 | |||
| @@ -67,6 +67,34 @@ namespace WixToolsetTest.CoreIntegration | |||
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | [Fact(Skip = "Test demonstrates failure")] | 69 | [Fact(Skip = "Test demonstrates failure")] |
| 70 | public void CanDecompileNestedDirSearchUnderRegSearch() | ||
| 71 | { | ||
| 72 | var folder = TestData.Get(@"TestData\AppSearch"); | ||
| 73 | |||
| 74 | using (var fs = new DisposableFileSystem()) | ||
| 75 | { | ||
| 76 | var intermediateFolder = fs.GetFolder(); | ||
| 77 | var outputPath = Path.Combine(intermediateFolder, @"Actual.wxs"); | ||
| 78 | |||
| 79 | var result = WixRunner.Execute(new[] | ||
| 80 | { | ||
| 81 | "decompile", | ||
| 82 | Path.Combine(folder, "NestedDirSearchUnderRegSearch.msi"), | ||
| 83 | "-intermediateFolder", intermediateFolder, | ||
| 84 | "-o", outputPath | ||
| 85 | }); | ||
| 86 | |||
| 87 | result.AssertSuccess(); | ||
| 88 | |||
| 89 | var actual = File.ReadAllText(outputPath); | ||
| 90 | var actualFormatted = XDocument.Parse(actual, LoadOptions.PreserveWhitespace | LoadOptions.SetBaseUri | LoadOptions.SetLineInfo).ToString(); | ||
| 91 | var expected = XDocument.Load(Path.Combine(folder, "DecompiledNestedDirSearchUnderRegSearch.wxs"), LoadOptions.PreserveWhitespace | LoadOptions.SetBaseUri | LoadOptions.SetLineInfo).ToString(); | ||
| 92 | |||
| 93 | Assert.Equal(expected, actualFormatted); | ||
| 94 | } | ||
| 95 | } | ||
| 96 | |||
| 97 | [Fact(Skip = "Test demonstrates failure")] | ||
| 70 | public void CanDecompileOldClassTableDefinition() | 98 | public void CanDecompileOldClassTableDefinition() |
| 71 | { | 99 | { |
| 72 | // The input MSI was not created using standard methods, it is an example of a real world database that needs to be decompiled. | 100 | // The input MSI was not created using standard methods, it is an example of a real world database that needs to be decompiled. |
