mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
perf: Massive performance improvements to enum HasFlag and HasFlags extensions
This commit is contained in:
parent
668994be18
commit
8f17d59694
3 changed files with 213 additions and 63 deletions
|
|
@ -253,6 +253,7 @@ namespace ICD.Common.Utils.Tests.Xml
|
|||
[TestCase("<Test><Child>A</Child></Test>", "Child", true, eTestEnum.A)]
|
||||
[TestCase("<Test><Child>A, B</Child></Test>", "Child", true, eTestEnum.A | eTestEnum.B)]
|
||||
public void ReadChildElementContentAsEnumTest<T>(string xml, string childElement, bool ignoreCase, T expected)
|
||||
where T : struct, IConvertible
|
||||
{
|
||||
Assert.AreEqual(expected, XmlUtils.ReadChildElementContentAsEnum<T>(xml, childElement, ignoreCase));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue