public Task <bool> RunCoverletAsync(ICoverageProject project, bool throwError = false) { if (coverletDataCollectorUtil.CanUseDataCollector(project)) { return(coverletDataCollectorUtil.RunAsync(throwError)); } return(coverletGlobalUtil.RunAsync(project, throwError)); }
public Task RunCoverletAsync(ICoverageProject project, CancellationToken cancellationToken) { if (coverletDataCollectorUtil.CanUseDataCollector(project)) { return(coverletDataCollectorUtil.RunAsync(cancellationToken)); } return(coverletGlobalUtil.RunAsync(project, cancellationToken)); }