public void WhenInOperator_ThenGetFiles() { var query = new Query(); //query.AddFileSource(new TestSearchSource(true)); //query.AddFilter(new FileExtensionFilter("ts, js", FilterOperator.In)); //query.AddFilter(new FileNameFilter("*.d.ts", FilterOperator.NotEqual)); //query.AddFilter(new FileContentsFilter("canvascontext2d")); //query.AddFilter(new FileContentsFilter("circle")); var proc = new FileQueryProcessor(); var results = proc.Execute(query); }
private void RunFileQuery(Query query) { if (queryProc == null) { queryProc = new FileQueryProcessor(); queryProc.FileFound += QueryProc_FileFound; } try { LastError = null; queryProc.Execute(query); } catch (Exception ex) { LastError = ex; } }
public void Setup() { proc = new FileQueryProcessor(); }