diff options
author | Bob Arnson <bob@firegiant.com> | 2020-03-26 13:31:04 -0400 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2020-03-26 10:50:21 -0700 |
commit | 271601dfe0990917ef6331fbddcfd1b400882eb2 (patch) | |
tree | c246d6c3a04d4b5c95e4f15bea71a65c5084beba /src/test | |
parent | c1ebab9485256e5fbf4f47d20be8627fd03c68a1 (diff) | |
download | wix-271601dfe0990917ef6331fbddcfd1b400882eb2.tar.gz wix-271601dfe0990917ef6331fbddcfd1b400882eb2.tar.bz2 wix-271601dfe0990917ef6331fbddcfd1b400882eb2.zip |
Add intermediate levels to track how IR has been lowered.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/WixToolsetTest.Data/SerializeFixture.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test/WixToolsetTest.Data/SerializeFixture.cs b/src/test/WixToolsetTest.Data/SerializeFixture.cs index 34e50f36..55460d54 100644 --- a/src/test/WixToolsetTest.Data/SerializeFixture.cs +++ b/src/test/WixToolsetTest.Data/SerializeFixture.cs | |||
@@ -26,13 +26,21 @@ namespace WixToolsetTest.Data | |||
26 | Location = ComponentLocation.Either, | 26 | Location = ComponentLocation.Either, |
27 | }); | 27 | }); |
28 | 28 | ||
29 | var intermediate = new Intermediate("TestIntermediate", new[] { section }, null); | 29 | var intermediate = new Intermediate("TestIntermediate", IntermediateLevels.Compiled, new[] { section }, null); |
30 | |||
31 | intermediate.UpdateLevel(IntermediateLevels.Linked); | ||
32 | intermediate.UpdateLevel(IntermediateLevels.Resolved); | ||
30 | 33 | ||
31 | var path = Path.GetTempFileName(); | 34 | var path = Path.GetTempFileName(); |
32 | intermediate.Save(path); | 35 | intermediate.Save(path); |
33 | 36 | ||
34 | var loaded = Intermediate.Load(path); | 37 | var loaded = Intermediate.Load(path); |
35 | 38 | ||
39 | Assert.True(loaded.HasLevel(IntermediateLevels.Compiled)); | ||
40 | Assert.True(loaded.HasLevel(IntermediateLevels.Linked)); | ||
41 | Assert.True(loaded.HasLevel(IntermediateLevels.Resolved)); | ||
42 | Assert.False(loaded.HasLevel(WixToolset.Data.WindowsInstaller.IntermediateLevels.PartiallyBound)); | ||
43 | |||
36 | var tuple = (ComponentTuple)loaded.Sections.Single().Tuples.Single(); | 44 | var tuple = (ComponentTuple)loaded.Sections.Single().Tuples.Single(); |
37 | 45 | ||
38 | Assert.Equal("TestComponent", tuple.Id.Id); | 46 | Assert.Equal("TestComponent", tuple.Id.Id); |