mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Renaming xml utils method
This commit is contained in:
parent
3c3d6fa52e
commit
5724cb3c8c
5 changed files with 45 additions and 45 deletions
|
|
@ -32,7 +32,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
|||
|
||||
Assert.IsFalse(reader.HasAttribute("attr1"));
|
||||
|
||||
reader.SkipToNextElement();
|
||||
reader.ReadToNextElement();
|
||||
|
||||
Assert.IsTrue(reader.HasAttribute("attr1"));
|
||||
Assert.IsTrue(reader.HasAttribute("attr2"));
|
||||
|
|
@ -47,7 +47,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
|||
|
||||
Assert.IsEmpty(reader.GetAttributes());
|
||||
|
||||
reader.SkipToNextElement();
|
||||
reader.ReadToNextElement();
|
||||
|
||||
IcdXmlAttribute[] attributes = reader.GetAttributes().ToArray();
|
||||
Assert.AreEqual(2, attributes.Length);
|
||||
|
|
@ -62,7 +62,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
|||
|
||||
Assert.Throws<FormatException>(() => reader.GetAttributeAsString("attr1"));
|
||||
|
||||
reader.SkipToNextElement();
|
||||
reader.ReadToNextElement();
|
||||
|
||||
Assert.AreEqual("1", reader.GetAttributeAsString("attr1"));
|
||||
Assert.AreEqual("2", reader.GetAttributeAsString("attr2"));
|
||||
|
|
@ -77,7 +77,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
|||
|
||||
Assert.Throws<FormatException>(() => reader.GetAttributeAsInt("attr1"));
|
||||
|
||||
reader.SkipToNextElement();
|
||||
reader.ReadToNextElement();
|
||||
|
||||
Assert.AreEqual(1, reader.GetAttributeAsInt("attr1"));
|
||||
Assert.AreEqual(2, reader.GetAttributeAsInt("attr2"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue