aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2018-11-14 20:23:35 -0500
committerRob Mensching <rob@robmensching.com>2018-11-19 14:19:02 -0800
commit135dad52ea93d65e9cfe1490f34d12bec510c836 (patch)
treec096fa60a49737bd62018cfd708f77b9013d9963 /src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs
parent8592a35ebf66a813d2094294f8769d5f2b8c82f8 (diff)
downloadwix-135dad52ea93d65e9cfe1490f34d12bec510c836.tar.gz
wix-135dad52ea93d65e9cfe1490f34d12bec510c836.tar.bz2
wix-135dad52ea93d65e9cfe1490f34d12bec510c836.zip
Explicitly mark bitness of entities that support 64-bit attribute.
This ensures that you can build a 64-bit package with 32-bit entities and not lose the "forced" 32-bit-ness in the decompiled output.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/DecompileFixture.cs28
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}