Example #1
0
        internal static Faction ValidateFaction(string faction)
        {
            bool result = Enum.TryParse(typeof(Faction), faction, out object factionObj);

            if (!result)
            {
                throw new ArgumentException(string.Format(OutputMessages.InvalidWeatherType(), faction));
            }

            return((Faction)factionObj);
        }