diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-02-27 16:28:42 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-03-02 15:50:47 -0600 |
| commit | ed20ef6dc8caa5d585c1a715ff4ba577687bf291 (patch) | |
| tree | ac457c8d3fe13578b495504bfd4c458897ce3547 /src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | |
| parent | 263c62069df0f154001915cca00d6d4926f2fbb5 (diff) | |
| download | wix-ed20ef6dc8caa5d585c1a715ff4ba577687bf291.tar.gz wix-ed20ef6dc8caa5d585c1a715ff4ba577687bf291.tar.bz2 wix-ed20ef6dc8caa5d585c1a715ff4ba577687bf291.zip | |
Add failing tests for package description and packages sharing payloads
In Core projects, treat warnings as errors.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs index 0660dd7b..2cc9a39e 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | namespace WixToolsetTest.CoreIntegration | 3 | namespace WixToolsetTest.CoreIntegration |
| 4 | { | 4 | { |
| 5 | using System; | 5 | using System; |
| 6 | using System.Collections.Generic; | ||
| 6 | using System.IO; | 7 | using System.IO; |
| 7 | using System.Linq; | 8 | using System.Linq; |
| 8 | using System.Text; | 9 | using System.Text; |
| @@ -115,6 +116,11 @@ namespace WixToolsetTest.CoreIntegration | |||
| 115 | Assert.Equal($"<Registration Id='{bundleSymbol.BundleId}' ExecutableName='test.exe' PerMachine='yes' Tag='' Version='1.0.0.0' ProviderKey='{bundleSymbol.BundleId}'>" + | 116 | Assert.Equal($"<Registration Id='{bundleSymbol.BundleId}' ExecutableName='test.exe' PerMachine='yes' Tag='' Version='1.0.0.0' ProviderKey='{bundleSymbol.BundleId}'>" + |
| 116 | "<Arp Register='yes' DisplayName='~TestBundle' DisplayVersion='1.0.0.0' Publisher='Example Corporation' />" + | 117 | "<Arp Register='yes' DisplayName='~TestBundle' DisplayVersion='1.0.0.0' Publisher='Example Corporation' />" + |
| 117 | "</Registration>", registrationElement.GetTestXml()); | 118 | "</Registration>", registrationElement.GetTestXml()); |
| 119 | |||
| 120 | var msiPayloads = extractResult.SelectManifestNodes("/burn:BurnManifest/burn:Payload[@Id='test.msi']"); | ||
| 121 | var msiPayload = (XmlNode)Assert.Single(msiPayloads); | ||
| 122 | Assert.Equal("<Payload Id='test.msi' FilePath='test.msi' FileSize='*' Hash='*' Packaging='embedded' SourcePath='a0' Container='WixAttachedContainer' />", | ||
| 123 | msiPayload.GetTestXml(new Dictionary<string, List<string>>() { { "Payload", new List<string> { "FileSize", "Hash" } } })); | ||
| 118 | } | 124 | } |
| 119 | 125 | ||
| 120 | var manifestResource = new Resource(ResourceType.Manifest, "#1", 1033); | 126 | var manifestResource = new Resource(ResourceType.Manifest, "#1", 1033); |
