Пример #1
0
        public int Count(string folderPath)
        {
            var totalLines = 0;
            var files      = _fileSystem.GetFilesInFolder(folderPath, "*.cs");

            foreach (var file in files)
            {
                totalLines += _fileLineCounter.Count(file);
            }

            return(totalLines);
        }
Пример #2
0
        public FakeFileLineCounterBuilder WithCountReturning(string filePath, int lineCount)
        {
            _fake.Count(filePath).Returns(lineCount);

            return(this);
        }