public CombinatorialGenerator_TestClass() { Errors = new List<ErrorBase>(); Reports = new List<ParameterBase>(); Combinatorials = new List<Combinatorial<string>>(); Tier = null; }
public void HandleReport(ParameterBase reportToHandle) { if ((reportToHandle != null) && (reportToHandle.Type == typeof(string))) { Reports.Add(reportToHandle); if (reportToHandle.Name == "Combinatorial") { CombinatorialParameter<string> newParameter = (CombinatorialParameter<string>)reportToHandle; Combinatorials.Add(newParameter.Combinatorial); } else if (reportToHandle.Name == "CombinatorialTier") { CombinatorialTierParameter<string> newParameter = (CombinatorialTierParameter<string>)reportToHandle; Tier = newParameter.Tier; } } }
public static List<string> ConvertCombinatorialsToStringList(CombinatorialTier<string> combinatorialsPassed) { return ConvertCombinatorialsToStringList(combinatorialsPassed.Tier); }