diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-25 14:43:50 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-25 14:50:31 -0700 |
| commit | 38afa9e7bc7eacc021f8805f607368a05751e3c3 (patch) | |
| tree | 803b0a8d9a06a7d6f7c4df408437017ae21a883e /src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | |
| parent | 8968578d50858721317d410549a9f9b5c62bf1f7 (diff) | |
| download | wix-38afa9e7bc7eacc021f8805f607368a05751e3c3.tar.gz wix-38afa9e7bc7eacc021f8805f607368a05751e3c3.tar.bz2 wix-38afa9e7bc7eacc021f8805f607368a05751e3c3.zip | |
The Great Tuple to Symbol Rename (tm)
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs index 7f9b9686..57351b27 100644 --- a/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | |||
| @@ -7,7 +7,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 7 | using WixBuildTools.TestSupport; | 7 | using WixBuildTools.TestSupport; |
| 8 | using WixToolset.Core.TestPackage; | 8 | using WixToolset.Core.TestPackage; |
| 9 | using WixToolset.Data; | 9 | using WixToolset.Data; |
| 10 | using WixToolset.Data.Tuples; | 10 | using WixToolset.Data.Symbols; |
| 11 | using Xunit; | 11 | using Xunit; |
| 12 | 12 | ||
| 13 | public class WixlibQueryFixture | 13 | public class WixlibQueryFixture |
| @@ -34,9 +34,9 @@ namespace WixToolsetTest.CoreIntegration | |||
| 34 | result.AssertSuccess(); | 34 | result.AssertSuccess(); |
| 35 | 35 | ||
| 36 | var intermediate = Intermediate.Load(wixlibPath); | 36 | var intermediate = Intermediate.Load(wixlibPath); |
| 37 | var allTuples = intermediate.Sections.SelectMany(s => s.Tuples); | 37 | var allSymbols = intermediate.Sections.SelectMany(s => s.Symbols); |
| 38 | var wixSimpleRefTuples = allTuples.OfType<WixSimpleReferenceTuple>(); | 38 | var wixSimpleRefSymbols = allSymbols.OfType<WixSimpleReferenceSymbol>(); |
| 39 | var repRef = wixSimpleRefTuples.Where(t => t.Table == "WixAction" && | 39 | var repRef = wixSimpleRefSymbols.Where(t => t.Table == "WixAction" && |
| 40 | t.PrimaryKeys == "InstallExecuteSequence/RemoveExistingProducts") | 40 | t.PrimaryKeys == "InstallExecuteSequence/RemoveExistingProducts") |
| 41 | .SingleOrDefault(); | 41 | .SingleOrDefault(); |
| 42 | Assert.NotNull(repRef); | 42 | Assert.NotNull(repRef); |
| @@ -65,12 +65,12 @@ namespace WixToolsetTest.CoreIntegration | |||
| 65 | result.AssertSuccess(); | 65 | result.AssertSuccess(); |
| 66 | 66 | ||
| 67 | var intermediate = Intermediate.Load(wixlibPath); | 67 | var intermediate = Intermediate.Load(wixlibPath); |
| 68 | var allTuples = intermediate.Sections.SelectMany(s => s.Tuples); | 68 | var allSymbols = intermediate.Sections.SelectMany(s => s.Symbols); |
| 69 | var typeLibTuple = allTuples.OfType<TypeLibTuple>() | 69 | var typeLibSymbol = allSymbols.OfType<TypeLibSymbol>() |
| 70 | .SingleOrDefault(); | 70 | .SingleOrDefault(); |
| 71 | Assert.NotNull(typeLibTuple); | 71 | Assert.NotNull(typeLibSymbol); |
| 72 | 72 | ||
| 73 | var fields = typeLibTuple.Fields.Select(field => field?.Type == IntermediateFieldType.Bool | 73 | var fields = typeLibSymbol.Fields.Select(field => field?.Type == IntermediateFieldType.Bool |
| 74 | ? field.AsNullableNumber()?.ToString() | 74 | ? field.AsNullableNumber()?.ToString() |
| 75 | : field?.AsString()) | 75 | : field?.AsString()) |
| 76 | .ToList(); | 76 | .ToList(); |
