public static IEnumerable <XmlDocExampleCode> ParseXmlDocFilesExampleCode(this ICakeContext context, string pattern) { if (context == null) { throw new ArgumentNullException("context"); } if (string.IsNullOrWhiteSpace(pattern)) { throw new ArgumentNullException("pattern"); } var parser = new XmlDocExampleCodeParser(context.FileSystem, context.Globber, context.Log); return(parser.ParseFiles(pattern)); }
public static IEnumerable <XmlDocExampleCode> ParseXmlDocExampleCode(this ICakeContext context, FilePath xmlFilePath) { if (context == null) { throw new ArgumentNullException("context"); } if (xmlFilePath == null) { throw new ArgumentNullException("xmlFilePath"); } var parser = new XmlDocExampleCodeParser(context.FileSystem, context.Globber, context.Log); return(parser.Parse(xmlFilePath)); }