From a6421f631d0a7a74d5de50d8877800a2b20fdeab Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 12 Oct 2017 11:53:43 -0400 Subject: [PATCH] Unit test for xml formatting --- ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs b/ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs index 3653c1c..a60b6bb 100644 --- a/ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs +++ b/ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs @@ -160,5 +160,17 @@ namespace ICD.Common.Utils.Tests.Xml Assert.IsFalse(XmlUtils.IsValidXml(@"")); Assert.IsTrue(XmlUtils.IsValidXml(EXAMPLE_XML)); } + + [Test] + public void FormatTest() + { + const string xml = ""; + const string expected = @" + + +"; + + Assert.AreEqual(expected, XmlUtils.Format(xml)); + } } } \ No newline at end of file