From 0e71bdd637a6b3c34f18d4b3630d55fa4cdfd2a3 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 18 Dec 2020 22:04:48 -0600 Subject: Enable XML doc. --- src/WixToolset.Core.TestPackage/XmlNodeExtensions.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/WixToolset.Core.TestPackage/XmlNodeExtensions.cs') diff --git a/src/WixToolset.Core.TestPackage/XmlNodeExtensions.cs b/src/WixToolset.Core.TestPackage/XmlNodeExtensions.cs index a7f04508..f4966f74 100644 --- a/src/WixToolset.Core.TestPackage/XmlNodeExtensions.cs +++ b/src/WixToolset.Core.TestPackage/XmlNodeExtensions.cs @@ -7,13 +7,28 @@ namespace WixToolset.Core.TestPackage using System.Text.RegularExpressions; using System.Xml; + /// + /// Utility class to help compare XML in tests using string comparisons by using single quotes and stripping all namespaces. + /// public static class XmlNodeExtensions { + /// + /// Returns the node's outer XML using single quotes and stripping all namespaces. + /// + /// + /// Attributes for which the value should be set to '*'. + /// public static string GetTestXml(this XmlNode node, Dictionary> ignoredAttributesByElementName = null) { return node.OuterXml.GetTestXml(ignoredAttributesByElementName); } + /// + /// Returns the XML using single quotes and stripping all namespaces. + /// + /// + /// Attributes for which the value should be set to '*'. + /// public static string GetTestXml(this string xml, Dictionary> ignoredAttributesByElementName = null) { string formattedXml; -- cgit v1.2.3-55-g6feb