mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
Addtional xml tests
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user