private bool VerifyReadLineParseOverloads(Overloads overloads) { if (overloads.Name != "ReadLine") { return(false); } if (overloads.ReturnType != "string") { return(false); } if (overloads.Count() != 1) { return(false); } return(true); }
private bool VerifyDateTimeParseOverloads(Overloads overloads) { if (overloads.Name != "Parse") { return(false); } if (overloads.ReturnType != "DateTime") { return(false); } if (overloads.Count() != 3) { return(false); } var threeParams = overloads.Single(method => method.Parameters.Count == 3).Parameters.ToArray(); if (threeParams[0].Name != "s") { return(false); } if (threeParams[0].Type != "string") { return(false); } if (threeParams[1].Name != "provider") { return(false); } if (threeParams[1].Type != "IFormatProvider") { return(false); } if (threeParams[2].Name != "styles") { return(false); } if (threeParams[2].Type != "DateTimeStyles") { return(false); } return(true); }