public CodeTypeDeclaration[] GenerateUnitClasses() { var results = from List <MethodInfo> overloads in _methods let option = overloads.Count > 1 ? _optionsForOverloads : UnitCodeGenerator.Options.Default from method in overloads select UnitCodeGenerator.Create(method).GenerateClass(option); return(results.ToArray()); }
private bool FilterMethod(MethodInfo method) { if (!UnitCodeGenerator.IsSupported(method)) { return(false); } var filterText = _methodList.FilterText; return(filterText == null || method.Name.Contains(filterText, StringComparison.OrdinalIgnoreCase)); }
private static bool IsMethodSupported(MethodInfo method) { return(UnitCodeGenerator.IsSupported(method)); }