diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-05-16 18:31:13 +1000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-05-16 21:33:56 +1000 |
commit | ad9cdd7dc6faee762e06a8d3446fa68c74dd802d (patch) | |
tree | 48bf64bff5de8c4eeb339df42d40b956e9fc8ba4 /src/test | |
parent | 4d96895a19c79ced1543d44e181527824c82c8e8 (diff) | |
download | wix-ad9cdd7dc6faee762e06a8d3446fa68c74dd802d.tar.gz wix-ad9cdd7dc6faee762e06a8d3446fa68c74dd802d.tar.bz2 wix-ad9cdd7dc6faee762e06a8d3446fa68c74dd802d.zip |
Get Log/@Extension and Registration/@ProviderKey to match v3.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs index acddd2d5..a1896d0d 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | |||
@@ -6,6 +6,7 @@ namespace WixToolsetTest.CoreIntegration | |||
6 | using System.IO; | 6 | using System.IO; |
7 | using System.Linq; | 7 | using System.Linq; |
8 | using System.Text; | 8 | using System.Text; |
9 | using System.Xml; | ||
9 | using Example.Extension; | 10 | using Example.Extension; |
10 | using WixBuildTools.TestSupport; | 11 | using WixBuildTools.TestSupport; |
11 | using WixToolset.Core.TestPackage; | 12 | using WixToolset.Core.TestPackage; |
@@ -102,6 +103,16 @@ namespace WixToolsetTest.CoreIntegration | |||
102 | var bextManifestData = wixOutput.GetData(BurnConstants.BundleExtensionDataWixOutputStreamName); | 103 | var bextManifestData = wixOutput.GetData(BurnConstants.BundleExtensionDataWixOutputStreamName); |
103 | var extractedBextManifestData = File.ReadAllText(Path.Combine(baFolderPath, "BundleExtensionData.xml"), Encoding.UTF8); | 104 | var extractedBextManifestData = File.ReadAllText(Path.Combine(baFolderPath, "BundleExtensionData.xml"), Encoding.UTF8); |
104 | Assert.Equal(extractedBextManifestData, bextManifestData); | 105 | Assert.Equal(extractedBextManifestData, bextManifestData); |
106 | |||
107 | var logElements = extractResult.SelectManifestNodes("/burn:BurnManifest/burn:Log"); | ||
108 | var logElement = (XmlNode)Assert.Single(logElements); | ||
109 | Assert.Equal("<Log PathVariable='WixBundleLog' Prefix='~TestBundle' Extension='log' />", logElement.GetTestXml()); | ||
110 | |||
111 | var registrationElements = extractResult.SelectManifestNodes("/burn:BurnManifest/burn:Registration"); | ||
112 | var registrationElement = (XmlNode)Assert.Single(registrationElements); | ||
113 | Assert.Equal($"<Registration Id='{bundleTuple.BundleId}' ExecutableName='test.exe' PerMachine='yes' Tag='' Version='1.0.0.0' ProviderKey='{bundleTuple.BundleId}'>" + | ||
114 | "<Arp Register='yes' DisplayName='~TestBundle' DisplayVersion='1.0.0.0' Publisher='Example Corporation' />" + | ||
115 | "</Registration>", registrationElement.GetTestXml()); | ||
105 | } | 116 | } |
106 | } | 117 | } |
107 | } | 118 | } |