diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-11-08 14:46:30 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-11-08 14:53:03 +1000 |
| commit | 8a7d727f1ab0dfef956db726d64985311291505e (patch) | |
| tree | af08fe98b7a94e435e0061034487d5c1584bc4ae /src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | |
| parent | e03595bdca426a03ad740e4c312f028f97f465ec (diff) | |
| download | wix-8a7d727f1ab0dfef956db726d64985311291505e.tar.gz wix-8a7d727f1ab0dfef956db726d64985311291505e.tar.bz2 wix-8a7d727f1ab0dfef956db726d64985311291505e.zip | |
Add failing test for getting Shortcut/@Name from wixlib.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs index 7f9b9686..53bc5910 100644 --- a/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | |||
| @@ -12,6 +12,36 @@ namespace WixToolsetTest.CoreIntegration | |||
| 12 | 12 | ||
| 13 | public class WixlibQueryFixture | 13 | public class WixlibQueryFixture |
| 14 | { | 14 | { |
| 15 | [Fact(Skip = "Test demonstrates failure")] | ||
| 16 | public void ShortcutNameWithPreprocessorVariableIsResolved() | ||
| 17 | { | ||
| 18 | var folder = TestData.Get(@"TestData\Shortcut"); | ||
| 19 | |||
| 20 | using (var fs = new DisposableFileSystem()) | ||
| 21 | { | ||
| 22 | var baseFolder = fs.GetFolder(); | ||
| 23 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 24 | var wixlibPath = Path.Combine(intermediateFolder, @"test.wixlib"); | ||
| 25 | |||
| 26 | var result = WixRunner.Execute(new[] | ||
| 27 | { | ||
| 28 | "build", | ||
| 29 | Path.Combine(folder, "ShortcutProperty.wxs"), | ||
| 30 | "-intermediateFolder", intermediateFolder, | ||
| 31 | "-o", wixlibPath | ||
| 32 | }); | ||
| 33 | |||
| 34 | result.AssertSuccess(); | ||
| 35 | |||
| 36 | var intermediate = Intermediate.Load(wixlibPath); | ||
| 37 | var allTuples = intermediate.Sections.SelectMany(s => s.Tuples); | ||
| 38 | var shortcutTuple = allTuples.OfType<ShortcutTuple>() | ||
| 39 | .SingleOrDefault(); | ||
| 40 | Assert.NotNull(shortcutTuple); | ||
| 41 | Assert.Equal("d", shortcutTuple.Name); | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 15 | [Fact] | 45 | [Fact] |
| 16 | public void UpgradeProducesReferenceToRemoveExistingProducts() | 46 | public void UpgradeProducesReferenceToRemoveExistingProducts() |
| 17 | { | 47 | { |
