private IRepositorySnapshot ConvertCoverageReport(IRepositorySnapshot snapshot) { var coverageOutputLocation = snapshot.PathToCoverageResultFile.Match(x => x, string.Empty); var newPath = _converter.Convert(coverageOutputLocation, Path.GetDirectoryName(coverageOutputLocation) !); return(snapshot.With(pathToCoverageResultFile: newPath)); }
private IRepositorySnapshot ConvertCoverageResults(IRepositorySnapshot repositorySnapshot) { var path = repositorySnapshot.PathToCoverageResultFile.Some(x => x) .None(() => string.Empty); var result = _converter.Convert(path, Path.GetDirectoryName(path) !); return(repositorySnapshot.With(pathToCoverageResultFile: result.Some(x => x) .None(() => path))); }