Addtional xml tests

This commit is contained in:
Chris Cameron
2017-10-12 14:55:47 -04:00
parent a6421f631d
commit 9e81d56636
2 changed files with 133 additions and 0 deletions

View File

@@ -29,6 +29,17 @@ namespace ICD.Common.Utils.Tests.Xml
+ "<Level2 />"
+ "</Level1>";
#region Attributes
[Test]
public void HasAttributeTest()
{
Assert.IsTrue(XmlUtils.HasAttribute(EXAMPLE_XML, "attr1"));
Assert.IsTrue(XmlUtils.HasAttribute(EXAMPLE_XML, "attr2"));
Assert.IsFalse(XmlUtils.HasAttribute(EXAMPLE_XML, "attr3"));
Assert.IsFalse(XmlUtils.HasAttribute(EXAMPLE_XML_2, "attr1"));
}
[Test, UsedImplicitly]
public void GetAttributesTest()
{
@@ -58,6 +69,8 @@ namespace ICD.Common.Utils.Tests.Xml
}
}
#endregion
[Test, UsedImplicitly]
public void RecursionTest()
{