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 66ce98c0..3a9781df 100644 --- a/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs | |||
@@ -37,5 +37,33 @@ namespace WixToolsetTest.CoreIntegration | |||
37 | Assert.Equal(expected, actualFormatted); | 37 | Assert.Equal(expected, actualFormatted); |
38 | } | 38 | } |
39 | } | 39 | } |
40 | |||
41 | [Fact] | ||
42 | public void CanDecompile64BitSingleFileCompressed() | ||
43 | { | ||
44 | var folder = TestData.Get(@"TestData\DecompileSingleFileCompressed64"); | ||
45 | |||
46 | using (var fs = new DisposableFileSystem()) | ||
47 | { | ||
48 | var intermediateFolder = fs.GetFolder(); | ||
49 | var outputPath = Path.Combine(intermediateFolder, @"Actual.wxs"); | ||
50 | |||
51 | var result = WixRunner.Execute(new[] | ||
52 | { | ||
53 | "decompile", | ||
54 | Path.Combine(folder, "example.msi"), | ||
55 | "-intermediateFolder", intermediateFolder, | ||
56 | "-o", outputPath | ||
57 | }); | ||
58 | |||
59 | result.AssertSuccess(); | ||
60 | |||
61 | var actual = File.ReadAllText(outputPath); | ||
62 | var actualFormatted = XDocument.Parse(actual, LoadOptions.PreserveWhitespace | LoadOptions.SetBaseUri | LoadOptions.SetLineInfo).ToString(); | ||
63 | var expected = XDocument.Load(Path.Combine(folder, "Expected.wxs"), LoadOptions.PreserveWhitespace | LoadOptions.SetBaseUri | LoadOptions.SetLineInfo).ToString(); | ||
64 | |||
65 | Assert.Equal(expected, actualFormatted); | ||
66 | } | ||
67 | } | ||
40 | } | 68 | } |
41 | } | 69 | } |