aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs16
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();