diff options
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 d6cf4742..c2520896 100644 --- a/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs | |||
@@ -98,6 +98,34 @@ namespace WixToolsetTest.CoreIntegration | |||
98 | } | 98 | } |
99 | 99 | ||
100 | [Fact(Skip = "Test demonstrates failure")] | 100 | [Fact(Skip = "Test demonstrates failure")] |
101 | public void CanDecompileSequenceTables() | ||
102 | { | ||
103 | var folder = TestData.Get(@"TestData\SequenceTables"); | ||
104 | |||
105 | using (var fs = new DisposableFileSystem()) | ||
106 | { | ||
107 | var intermediateFolder = fs.GetFolder(); | ||
108 | var outputPath = Path.Combine(intermediateFolder, @"Actual.wxs"); | ||
109 | |||
110 | var result = WixRunner.Execute(new[] | ||
111 | { | ||
112 | "decompile", | ||
113 | Path.Combine(folder, "SequenceTables.msi"), | ||
114 | "-intermediateFolder", intermediateFolder, | ||
115 | "-o", outputPath | ||
116 | }); | ||
117 | |||
118 | result.AssertSuccess(); | ||
119 | |||
120 | var actual = File.ReadAllText(outputPath); | ||
121 | var actualFormatted = XDocument.Parse(actual, LoadOptions.PreserveWhitespace | LoadOptions.SetBaseUri | LoadOptions.SetLineInfo).ToString(); | ||
122 | var expected = XDocument.Load(Path.Combine(folder, "DecompiledSequenceTables.wxs"), LoadOptions.PreserveWhitespace | LoadOptions.SetBaseUri | LoadOptions.SetLineInfo).ToString(); | ||
123 | |||
124 | Assert.Equal(expected, actualFormatted); | ||
125 | } | ||
126 | } | ||
127 | |||
128 | [Fact(Skip = "Test demonstrates failure")] | ||
101 | public void CanDecompileShortcuts() | 129 | public void CanDecompileShortcuts() |
102 | { | 130 | { |
103 | var folder = TestData.Get(@"TestData\Shortcut"); | 131 | var folder = TestData.Get(@"TestData\Shortcut"); |