diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-10-15 11:12:57 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-10-15 11:20:07 +1000 |
| commit | aa5a5e492f9a7060720056c27963cf1d06b4737f (patch) | |
| tree | 69aae3e2ed9b5dd781c1e0f52c8ef54576671b24 /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |
| parent | 868956398ebb9ac6cc47266b185ec39c94b57b6e (diff) | |
| download | wix-aa5a5e492f9a7060720056c27963cf1d06b4737f.tar.gz wix-aa5a5e492f9a7060720056c27963cf1d06b4737f.tar.bz2 wix-aa5a5e492f9a7060720056c27963cf1d06b4737f.zip | |
Add failing test for AsString on a number field with 0.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 6fea6e36..e2a672b7 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -681,6 +681,38 @@ namespace WixToolsetTest.CoreIntegration | |||
| 681 | } | 681 | } |
| 682 | 682 | ||
| 683 | [Fact] | 683 | [Fact] |
| 684 | public void PopulatesTypeLibTableWhenLanguageIsZero() | ||
| 685 | { | ||
| 686 | var folder = TestData.Get(@"TestData"); | ||
| 687 | |||
| 688 | using (var fs = new DisposableFileSystem()) | ||
| 689 | { | ||
| 690 | var baseFolder = fs.GetFolder(); | ||
| 691 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 692 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 693 | |||
| 694 | var result = WixRunner.Execute(new[] | ||
| 695 | { | ||
| 696 | "build", | ||
| 697 | Path.Combine(folder, "TypeLib", "Language0.wxs"), | ||
| 698 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 699 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 700 | "-intermediateFolder", intermediateFolder, | ||
| 701 | "-o", msiPath | ||
| 702 | }); | ||
| 703 | |||
| 704 | result.AssertSuccess(); | ||
| 705 | |||
| 706 | Assert.True(File.Exists(msiPath)); | ||
| 707 | var results = Query.QueryDatabase(msiPath, new[] { "TypeLib" }); | ||
| 708 | Assert.Equal(new[] | ||
| 709 | { | ||
| 710 | "TypeLib:{765BE8EE-BD7F-491E-90D2-C5A972462B50}\t0\tTypeLibComp\t\t\t\tProductFeature\t", | ||
| 711 | }, results); | ||
| 712 | } | ||
| 713 | } | ||
| 714 | |||
| 715 | [Fact] | ||
| 684 | public void PopulatesUpgradeTableFromManualUpgrade() | 716 | public void PopulatesUpgradeTableFromManualUpgrade() |
| 685 | { | 717 | { |
| 686 | var folder = TestData.Get(@"TestData\ManualUpgrade"); | 718 | var folder = TestData.Get(@"TestData\ManualUpgrade"); |
