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 | |
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')
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 4 | ||||
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | 30 |
2 files changed, 2 insertions, 32 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 83f53aca..81f780dc 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
@@ -384,7 +384,7 @@ namespace WixToolsetTest.CoreIntegration | |||
384 | } | 384 | } |
385 | } | 385 | } |
386 | 386 | ||
387 | [Fact(Skip = "Test demonstrates failure")] | 387 | [Fact] |
388 | public void PopulatesDirectoryTableWithValidDefaultDir() | 388 | public void PopulatesDirectoryTableWithValidDefaultDir() |
389 | { | 389 | { |
390 | var folder = TestData.Get(@"TestData"); | 390 | var folder = TestData.Get(@"TestData"); |
@@ -648,7 +648,7 @@ namespace WixToolsetTest.CoreIntegration | |||
648 | } | 648 | } |
649 | } | 649 | } |
650 | 650 | ||
651 | [Fact(Skip = "Test demonstrates failure")] | 651 | [Fact] |
652 | public void PopulatesMsiShortcutPropertyTable() | 652 | public void PopulatesMsiShortcutPropertyTable() |
653 | { | 653 | { |
654 | var folder = TestData.Get(@"TestData"); | 654 | var folder = TestData.Get(@"TestData"); |
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 | { |