diff options
Diffstat (limited to 'src/wix/WixToolset.Core.TestPackage/XmlNodeExtensions.cs')
-rw-r--r-- | src/wix/WixToolset.Core.TestPackage/XmlNodeExtensions.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wix/WixToolset.Core.TestPackage/XmlNodeExtensions.cs b/src/wix/WixToolset.Core.TestPackage/XmlNodeExtensions.cs index f4966f74..b269fb25 100644 --- a/src/wix/WixToolset.Core.TestPackage/XmlNodeExtensions.cs +++ b/src/wix/WixToolset.Core.TestPackage/XmlNodeExtensions.cs | |||
@@ -13,6 +13,17 @@ namespace WixToolset.Core.TestPackage | |||
13 | public static class XmlNodeExtensions | 13 | public static class XmlNodeExtensions |
14 | { | 14 | { |
15 | /// <summary> | 15 | /// <summary> |
16 | /// Adds root element around XML then returns it using single quotes and stripping all namespaces. | ||
17 | /// </summary> | ||
18 | /// <param name="xmlFragment"></param> | ||
19 | /// <param name="ignoredAttributesByElementName">Attributes for which the value should be set to '*'.</param> | ||
20 | /// <returns></returns> | ||
21 | public static string GetFragmentTestXml(this string xmlFragment, Dictionary<string, List<string>> ignoredAttributesByElementName = null) | ||
22 | { | ||
23 | return $"<root>{xmlFragment}</root>".GetTestXml(ignoredAttributesByElementName); | ||
24 | } | ||
25 | |||
26 | /// <summary> | ||
16 | /// Returns the node's outer XML using single quotes and stripping all namespaces. | 27 | /// Returns the node's outer XML using single quotes and stripping all namespaces. |
17 | /// </summary> | 28 | /// </summary> |
18 | /// <param name="node"></param> | 29 | /// <param name="node"></param> |