diff options
author | Bevan Weiss <bevan.weiss@gmail.com> | 2025-01-18 23:01:30 +1100 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2025-03-03 06:35:56 -0800 |
commit | 61d789db5de8613c51df1e7db94f459aadbd3ca8 (patch) | |
tree | be35d8cddab1d70df621949afd5ef84456602a37 /src/ext/Util/wixext/UtilDecompiler.cs | |
parent | 3b9efe831c6a408cd71a7bea6fa95f65c141911b (diff) | |
download | wix-61d789db5de8613c51df1e7db94f459aadbd3ca8.tar.gz wix-61d789db5de8613c51df1e7db94f459aadbd3ca8.tar.bz2 wix-61d789db5de8613c51df1e7db94f459aadbd3ca8.zip |
Add a basic unit test for the round msmq decompiler round trip.
Needed fix up for Group decompiler to work correctly, adding to Index,
and fixing where the Group name column is located.
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | src/ext/Util/wixext/UtilDecompiler.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ext/Util/wixext/UtilDecompiler.cs b/src/ext/Util/wixext/UtilDecompiler.cs index 1f3079d8..55323e15 100644 --- a/src/ext/Util/wixext/UtilDecompiler.cs +++ b/src/ext/Util/wixext/UtilDecompiler.cs | |||
@@ -435,11 +435,15 @@ namespace WixToolset.Util | |||
435 | { | 435 | { |
436 | foreach (var row in table.Rows) | 436 | foreach (var row in table.Rows) |
437 | { | 437 | { |
438 | this.DecompilerHelper.AddElementToRoot(UtilConstants.GroupName, | 438 | var group = new XElement(UtilConstants.GroupName, |
439 | new XAttribute("Id", row.FieldAsString(0)), | 439 | new XAttribute("Id", row.FieldAsString(0)), |
440 | new XAttribute("Name", row.FieldAsString(2)), | 440 | new XAttribute("Name", row.FieldAsString(2)), |
441 | AttributeIfNotNull("Domain", row, 3) | 441 | AttributeIfNotNull("Domain", row, 3) |
442 | ); | 442 | ); |
443 | |||
444 | this.DecompilerHelper.AddElementToRoot(group); | ||
445 | |||
446 | this.DecompilerHelper.IndexElement(row, group); | ||
443 | } | 447 | } |
444 | } | 448 | } |
445 | /// <summary> | 449 | /// <summary> |