コード例 #1
0
        public ISolutionInfo FromFile(string filePath)
        {
            if (!File.Exists(filePath))
                throw new FileNotFoundException("Unable to find file", filePath);

            var file = new FileInfo(filePath);
            solution = new SolutionInfo(file.Name, file.DirectoryName);

            foreach (var project in ResolveProjectFilesFrom(file))
                solution.AddProject(project);

            return solution;
        }
コード例 #2
0
 public void BeforeEachTest()
 {
     codeFile = MockRepository.GenerateStub<ICodeFileInfo>();
     solution = new SolutionInfo(null, null);
 }