diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-11-05 22:33:33 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-11-05 22:39:16 -0800 |
| commit | 97a70bbc1b90cb26f8c77d83e703689d15d08761 (patch) | |
| tree | c4d05ae10cb907f522c1df476cb1d5df7604cd14 /src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | |
| parent | 0f65aaaca2faf1b6fc233c445216d547f08c6fa5 (diff) | |
| download | wix-97a70bbc1b90cb26f8c77d83e703689d15d08761.tar.gz wix-97a70bbc1b90cb26f8c77d83e703689d15d08761.tar.bz2 wix-97a70bbc1b90cb26f8c77d83e703689d15d08761.zip | |
Fix resolution of !(bind.ProductVersion.MsiId) bind variables
Fixes wixtoolset/issues#4830
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 554f4b17..f32208a4 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | |||
| @@ -44,6 +44,12 @@ namespace WixToolsetTest.CoreIntegration | |||
| 44 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"test.wir")); | 44 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"test.wir")); |
| 45 | var section = intermediate.Sections.Single(); | 45 | var section = intermediate.Sections.Single(); |
| 46 | 46 | ||
| 47 | var bundleTuple = section.Tuples.OfType<WixBundleTuple>().Single(); | ||
| 48 | Assert.Equal("1.0.0.0", bundleTuple.Version); | ||
| 49 | |||
| 50 | var previousVersion = bundleTuple.Fields[(int)WixBundleTupleFields.Version].PreviousValue; | ||
| 51 | Assert.Equal("!(bind.packageVersion.test.msi)", previousVersion.AsString()); | ||
| 52 | |||
| 47 | var msiTuple = section.Tuples.OfType<WixBundlePackageTuple>().Single(); | 53 | var msiTuple = section.Tuples.OfType<WixBundlePackageTuple>().Single(); |
| 48 | Assert.Equal("test.msi", msiTuple.Id.Id ); | 54 | Assert.Equal("test.msi", msiTuple.Id.Id ); |
| 49 | } | 55 | } |
