mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
Addtional xml tests
This commit is contained in:
parent
a6421f631d
commit
9e81d56636
2 changed files with 133 additions and 0 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue