public void SolutionCanGetProjects() { var solutionFile = GetSolutionFile("SampleSolution.sln"); var solution = new Solution(solutionFile); foreach (var project in solution.GetProjectInfos()) { Console.WriteLine("{0} {1}", project.Name, project.ProjectFile); } }
public void SolutionCanGetProjectsWithFilter() { var solutionFile = GetSolutionFile("SampleSolution.sln"); var solution = new Solution(solutionFile); foreach (var project in solution.GetProjectInfos(p => p.Name.Contains("Tests"))) { Console.WriteLine("{0} {1}", project.Name, project.ProjectFile); } }