diff options
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"); |
