public static string GetRawEnumData(this IEnumHelper enumHelper, ValueType value) => enumHelper.EnumDescriptor.Enumerations.First(rawEnum => rawEnum.StartsWith(enumHelper.GetName(value)));
public static string GetDisplayValue(this IEnumHelper enumHelper, ValueType value) => $"{value} ({enumHelper.GetName(value)})";
public void TestGetName() { var result = enumHelper.GetName(1); Assert.AreEqual("e1", result); }