diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/PatchFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/PatchFixture.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/PatchFixture.cs b/src/test/WixToolsetTest.CoreIntegration/PatchFixture.cs index f1d0ea58..dda4ca28 100644 --- a/src/test/WixToolsetTest.CoreIntegration/PatchFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/PatchFixture.cs | |||
| @@ -83,6 +83,33 @@ namespace WixToolsetTest.CoreIntegration | |||
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | [Fact] | ||
| 87 | public void CanBuildBundleWithSlipstreamPatch() | ||
| 88 | { | ||
| 89 | var folder = TestData.Get(@"TestData\PatchSingle"); | ||
| 90 | |||
| 91 | using (var fs = new DisposableFileSystem()) | ||
| 92 | { | ||
| 93 | var tempFolder = fs.GetFolder(); | ||
| 94 | |||
| 95 | var baselinePdb = BuildMsi("Baseline.msi", folder, tempFolder, "1.0.0", "1.0.0", "1.0.0"); | ||
| 96 | var update1Pdb = BuildMsi("Update.msi", folder, tempFolder, "1.0.1", "1.0.1", "1.0.1"); | ||
| 97 | var patchPdb = BuildMsp("Patch1.msp", folder, tempFolder, "1.0.1"); | ||
| 98 | var bundleAPdb = BuildBundle("BundleA.exe", Path.Combine(folder, "BundleA"), tempFolder); | ||
| 99 | |||
| 100 | using (var wixOutput = WixOutput.Read(bundleAPdb)) | ||
| 101 | { | ||
| 102 | var manifestData = wixOutput.GetData(BurnConstants.BurnManifestWixOutputStreamName); | ||
| 103 | var doc = new XmlDocument(); | ||
| 104 | doc.LoadXml(manifestData); | ||
| 105 | var nsmgr = BundleExtractor.GetBurnNamespaceManager(doc, "w"); | ||
| 106 | var slipstreamMspNodes = doc.SelectNodes("/w:BurnManifest/w:Chain/w:MsiPackage/w:SlipstreamMsp", nsmgr); | ||
| 107 | Assert.Equal(1, slipstreamMspNodes.Count); | ||
| 108 | Assert.Equal("<SlipstreamMsp Id='PatchA' />", slipstreamMspNodes[0].GetTestXml()); | ||
| 109 | } | ||
| 110 | } | ||
| 111 | } | ||
| 112 | |||
| 86 | private static void VerifyPatchTargetCodes(string pdbPath, string[] expected) | 113 | private static void VerifyPatchTargetCodes(string pdbPath, string[] expected) |
| 87 | { | 114 | { |
| 88 | using (var wixOutput = WixOutput.Read(pdbPath)) | 115 | using (var wixOutput = WixOutput.Read(pdbPath)) |
