public List <string> GetOfType(Family[] families) { if (families.Length == 0) { return(TestTypes.GetAll()); } if (families.Length > 4) { throw new ArgumentException("There cannot be more than 4 families to pick!"); } var set = new List <string>(); families.ToList().ForEach(x => set.AddRange(GetFamily(x))); return(set); }
public static bool IsValidName(string name) { return(TestTypes.GetAll().Any(x => name.Equals(x))); }