aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-04-02 14:28:56 -0700
committerRob Mensching <rob@firegiant.com>2021-04-02 14:46:29 -0700
commit4bb99d4a7521f3182b3d8ea9833038dc067db118 (patch)
tree031c917bfc0fd3c513579646e92c3e9f823efba3 /src/test
parenta0dd2bc561ee6aa6b7aebedcff76c8a11e14bc9f (diff)
downloadwix-4bb99d4a7521f3182b3d8ea9833038dc067db118.tar.gz
wix-4bb99d4a7521f3182b3d8ea9833038dc067db118.tar.bz2
wix-4bb99d4a7521f3182b3d8ea9833038dc067db118.zip
Move codepage from section and to package, module, patch symbols
Contributes to wixtoolset/issues#5801
Diffstat (limited to 'src/test')
-rw-r--r--src/test/WixToolsetTest.Data/SerializeFixture.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/WixToolsetTest.Data/SerializeFixture.cs b/src/test/WixToolsetTest.Data/SerializeFixture.cs
index ff39cb33..8a65c2d4 100644
--- a/src/test/WixToolsetTest.Data/SerializeFixture.cs
+++ b/src/test/WixToolsetTest.Data/SerializeFixture.cs
@@ -20,7 +20,7 @@ namespace WixToolsetTest.Data
20 { 20 {
21 var sln = new SourceLineNumber("test.wxs", 1); 21 var sln = new SourceLineNumber("test.wxs", 1);
22 22
23 var section = new IntermediateSection("test", SectionType.Product, 65001); 23 var section = new IntermediateSection("test", SectionType.Product);
24 24
25 section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) 25 section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent"))
26 { 26 {
@@ -62,7 +62,7 @@ namespace WixToolsetTest.Data
62 public void CanUpdateIntermediate() 62 public void CanUpdateIntermediate()
63 { 63 {
64 var sln = new SourceLineNumber("test.wxs", 1); 64 var sln = new SourceLineNumber("test.wxs", 1);
65 var section = new IntermediateSection("test", SectionType.Product, 65001); 65 var section = new IntermediateSection("test", SectionType.Product);
66 66
67 section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) 67 section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent"))
68 { 68 {
@@ -119,7 +119,7 @@ namespace WixToolsetTest.Data
119 { 119 {
120 var sln = new SourceLineNumber("test.wxs", 1); 120 var sln = new SourceLineNumber("test.wxs", 1);
121 121
122 var section = new IntermediateSection("test", SectionType.Product, 65001); 122 var section = new IntermediateSection("test", SectionType.Product);
123 123
124 var fieldDefs = new[] 124 var fieldDefs = new[]
125 { 125 {
@@ -178,7 +178,7 @@ namespace WixToolsetTest.Data
178 symbol.Set(1, 2); 178 symbol.Set(1, 2);
179 symbol.Set(2, true); 179 symbol.Set(2, true);
180 180
181 var section = new IntermediateSection("test", SectionType.Product, 65001); 181 var section = new IntermediateSection("test", SectionType.Product);
182 section.AddSymbol(symbol); 182 section.AddSymbol(symbol);
183 183
184 var intermediate1 = new Intermediate("TestIntermediate", new[] { section }, null); 184 var intermediate1 = new Intermediate("TestIntermediate", new[] { section }, null);
@@ -200,7 +200,7 @@ namespace WixToolsetTest.Data
200 symbol2.Set(2, false); 200 symbol2.Set(2, false);
201 symbol2.Set(3, "baz"); 201 symbol2.Set(3, "baz");
202 202
203 var section2 = new IntermediateSection("test2", SectionType.Fragment, 65001); 203 var section2 = new IntermediateSection("test2", SectionType.Fragment);
204 section2.AddSymbol(symbol2); 204 section2.AddSymbol(symbol2);
205 205
206 var intermediate2 = new Intermediate("TestIntermediate2", new[] { section2 }, null); 206 var intermediate2 = new Intermediate("TestIntermediate2", new[] { section2 }, null);
@@ -261,7 +261,7 @@ namespace WixToolsetTest.Data
261 261
262 symbol.AddTag("symbol1tag"); 262 symbol.AddTag("symbol1tag");
263 263
264 var section = new IntermediateSection("test", SectionType.Product, 65001); 264 var section = new IntermediateSection("test", SectionType.Product);
265 section.AddSymbol(symbol); 265 section.AddSymbol(symbol);
266 266
267 var intermediate1 = new Intermediate("TestIntermediate", new[] { section }, null); 267 var intermediate1 = new Intermediate("TestIntermediate", new[] { section }, null);
@@ -289,7 +289,7 @@ namespace WixToolsetTest.Data
289 symbol2.AddTag("symbol2tag1"); 289 symbol2.AddTag("symbol2tag1");
290 symbol2.AddTag("symbol2tag2"); 290 symbol2.AddTag("symbol2tag2");
291 291
292 var section2 = new IntermediateSection("test2", SectionType.Fragment, 65001); 292 var section2 = new IntermediateSection("test2", SectionType.Fragment);
293 section2.AddSymbol(symbol2); 293 section2.AddSymbol(symbol2);
294 294
295 var intermediate2 = new Intermediate("TestIntermediate2", new[] { section2 }, null); 295 var intermediate2 = new Intermediate("TestIntermediate2", new[] { section2 }, null);
@@ -351,10 +351,10 @@ namespace WixToolsetTest.Data
351 351
352 var localizations = new[] 352 var localizations = new[]
353 { 353 {
354 new Localization(65001, null, bindVariables.ToDictionary(b => b.Id), controls.ToDictionary(c => c.GetKey())) 354 new Localization(65001, 1252, null, bindVariables.ToDictionary(b => b.Id), controls.ToDictionary(c => c.GetKey()))
355 }; 355 };
356 356
357 var section = new IntermediateSection("test", SectionType.Product, 65001); 357 var section = new IntermediateSection("test", SectionType.Product);
358 358
359 section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) 359 section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent"))
360 { 360 {