Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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)));
        }