diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 6409676e..11b1703c 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -1004,5 +1004,38 @@ namespace WixToolsetTest.CoreIntegration | |||
| 1004 | }, files.Select(f => f.Name).ToArray()); | 1004 | }, files.Select(f => f.Name).ToArray()); |
| 1005 | } | 1005 | } |
| 1006 | } | 1006 | } |
| 1007 | |||
| 1008 | [Fact] | ||
| 1009 | public void CanPublishComponentWithMultipleFeatureComponents() | ||
| 1010 | { | ||
| 1011 | var folder = TestData.Get(@"TestData\PublishComponent"); | ||
| 1012 | |||
| 1013 | using (var fs = new DisposableFileSystem()) | ||
| 1014 | { | ||
| 1015 | var baseFolder = fs.GetFolder(); | ||
| 1016 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 1017 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 1018 | |||
| 1019 | var result = WixRunner.Execute(new[] | ||
| 1020 | { | ||
| 1021 | "build", | ||
| 1022 | Path.Combine(folder, "Package.wxs"), | ||
| 1023 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
| 1024 | "-bindpath", Path.Combine(folder, "data"), | ||
| 1025 | "-intermediateFolder", intermediateFolder, | ||
| 1026 | "-o", msiPath | ||
| 1027 | }); | ||
| 1028 | |||
| 1029 | result.AssertSuccess(); | ||
| 1030 | |||
| 1031 | Assert.True(File.Exists(msiPath)); | ||
| 1032 | var results = Query.QueryDatabase(msiPath, new[] { "PublishComponent" }); | ||
| 1033 | WixAssert.CompareLineByLine(new[] | ||
| 1034 | { | ||
| 1035 | "PublishComponent:{0A82C8F6-9CE9-4336-B8BE-91A39B5F7081} Qualifier2 Component2 AppData2 ProductFeature2", | ||
| 1036 | "PublishComponent:{BD245B5A-EC33-46ED-98FF-E9D3D416AD04} Qualifier1 Component1 AppData1 ProductFeature1", | ||
| 1037 | }, results); | ||
| 1038 | } | ||
| 1039 | } | ||
| 1007 | } | 1040 | } |
| 1008 | } | 1041 | } |
