mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
feat: Added ToStringUndefined method to EnumUtils for printing known flags of an undefined composite
This commit is contained in:
@@ -290,5 +290,17 @@ namespace ICD.Common.Utils.Tests
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Formatting
|
||||
|
||||
[TestCase(eTestFlagsEnum.A | eTestFlagsEnum.B | eTestFlagsEnum.C | (eTestFlagsEnum)8,
|
||||
"A, B, C, 8")]
|
||||
public void ToStringUndefinedTest(eTestFlagsEnum value, string expected)
|
||||
{
|
||||
string toString = EnumUtils.ToStringUndefined(value);
|
||||
Assert.AreEqual(expected, toString);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user