using System; using UnityEngine.TestTools; namespace BracerLib.Utility { [ExcludeFromCoverage] public static class EnumUtility { public static T GetValue(int index) where T : IConvertible => (T)Enum.ToObject(typeof(T), index); public static T GetValue(string value) where T : IConvertible => (T)Enum.Parse(typeof(T), value, true); public static T[] GetValues() where T : IConvertible => (T[])Enum.GetValues(typeof(T)); } }