diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/WixToolsetTest.Data/SerializeFixture.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/WixToolsetTest.Data/SerializeFixture.cs b/src/test/WixToolsetTest.Data/SerializeFixture.cs index 56d08bc9..ff39cb33 100644 --- a/src/test/WixToolsetTest.Data/SerializeFixture.cs +++ b/src/test/WixToolsetTest.Data/SerializeFixture.cs | |||
@@ -22,7 +22,7 @@ namespace WixToolsetTest.Data | |||
22 | 22 | ||
23 | var section = new IntermediateSection("test", SectionType.Product, 65001); | 23 | var section = new IntermediateSection("test", SectionType.Product, 65001); |
24 | 24 | ||
25 | section.Symbols.Add(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) | 25 | section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) |
26 | { | 26 | { |
27 | ComponentId = new Guid(1, 0, 0, new byte[8]).ToString("B"), | 27 | ComponentId = new Guid(1, 0, 0, new byte[8]).ToString("B"), |
28 | DirectoryRef = "TestFolder", | 28 | DirectoryRef = "TestFolder", |
@@ -64,7 +64,7 @@ namespace WixToolsetTest.Data | |||
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, 65001); |
66 | 66 | ||
67 | section.Symbols.Add(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) | 67 | section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) |
68 | { | 68 | { |
69 | ComponentId = new Guid(1, 0, 0, new byte[8]).ToString("B"), | 69 | ComponentId = new Guid(1, 0, 0, new byte[8]).ToString("B"), |
70 | DirectoryRef = "TestFolder", | 70 | DirectoryRef = "TestFolder", |
@@ -91,7 +91,7 @@ namespace WixToolsetTest.Data | |||
91 | 91 | ||
92 | wixout.Reopen(writable: true); | 92 | wixout.Reopen(writable: true); |
93 | 93 | ||
94 | section.Symbols.Add(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "NewComponent")) | 94 | section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "NewComponent")) |
95 | { | 95 | { |
96 | ComponentId = new Guid(1, 0, 0, new byte[8]).ToString("B"), | 96 | ComponentId = new Guid(1, 0, 0, new byte[8]).ToString("B"), |
97 | }); | 97 | }); |
@@ -135,7 +135,7 @@ namespace WixToolsetTest.Data | |||
135 | symbol.Set(1, 2); | 135 | symbol.Set(1, 2); |
136 | symbol.Set(2, true); | 136 | symbol.Set(2, true); |
137 | 137 | ||
138 | section.Symbols.Add(symbol); | 138 | section.AddSymbol(symbol); |
139 | 139 | ||
140 | var intermediate = new Intermediate("TestIntermediate", new[] { section }, null); | 140 | var intermediate = new Intermediate("TestIntermediate", new[] { section }, null); |
141 | 141 | ||
@@ -179,7 +179,7 @@ namespace WixToolsetTest.Data | |||
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, 65001); |
182 | section.Symbols.Add(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); |
185 | 185 | ||
@@ -201,7 +201,7 @@ namespace WixToolsetTest.Data | |||
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, 65001); |
204 | section2.Symbols.Add(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); |
207 | 207 | ||
@@ -262,7 +262,7 @@ namespace WixToolsetTest.Data | |||
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, 65001); |
265 | section.Symbols.Add(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); |
268 | 268 | ||
@@ -290,7 +290,7 @@ namespace WixToolsetTest.Data | |||
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, 65001); |
293 | section2.Symbols.Add(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); |
296 | 296 | ||
@@ -356,7 +356,7 @@ namespace WixToolsetTest.Data | |||
356 | 356 | ||
357 | var section = new IntermediateSection("test", SectionType.Product, 65001); | 357 | var section = new IntermediateSection("test", SectionType.Product, 65001); |
358 | 358 | ||
359 | section.Symbols.Add(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) | 359 | section.AddSymbol(new ComponentSymbol(sln, new Identifier(AccessModifier.Global, "TestComponent")) |
360 | { | 360 | { |
361 | ComponentId = new Guid(1, 0, 0, new byte[8]).ToString("B"), | 361 | ComponentId = new Guid(1, 0, 0, new byte[8]).ToString("B"), |
362 | DirectoryRef = "TestFolder", | 362 | DirectoryRef = "TestFolder", |