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; }
public void BeforeEachTest() { codeFile = MockRepository.GenerateStub<ICodeFileInfo>(); solution = new SolutionInfo(null, null); }