Esempio n. 1
0
        private Option <List <FileCoverageData> > LoadData(string modeInput, Func <string[], List <FileCoverageData> > generateFunc)
        {
            if (generateFunc == null)
            {
                throw new ArgumentNullException(nameof(generateFunc));
            }

            var lines = _fileLoader.TryReadAllLinesFromFile(modeInput);

            if (!lines.HasValue)
            {
                return(Option <List <FileCoverageData> > .None);
            }

            return(generateFunc((string[])lines));
        }