diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-11-13 11:04:59 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-11-13 11:10:23 +1000 |
| commit | 92bd26dab11023a0c4c787945fd87b23aa0a78c8 (patch) | |
| tree | 7883a2bd273762f53e1ce68e986c03122e4ca92c /src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | |
| parent | e1d974378d049004c73d65dbb43a405f67ececd4 (diff) | |
| download | wix-92bd26dab11023a0c4c787945fd87b23aa0a78c8.tar.gz wix-92bd26dab11023a0c4c787945fd87b23aa0a78c8.tar.bz2 wix-92bd26dab11023a0c4c787945fd87b23aa0a78c8.zip | |
Fix parsing Shortcut/@Name and detect duplicate in GetMsiFilenameValue.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs index 53bc5910..7f9b9686 100644 --- a/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | |||
| @@ -12,36 +12,6 @@ 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 | |||
| 45 | [Fact] | 15 | [Fact] |
| 46 | public void UpgradeProducesReferenceToRemoveExistingProducts() | 16 | public void UpgradeProducesReferenceToRemoveExistingProducts() |
| 47 | { | 17 | { |
