Ejemplo n.º 1
0
        public void GetVisualStudioSolutionFilesInnerTests()
        {
            {
                // 1
                var tmpFolder = GetTempFolder();
                var project1  = CreateProject(tmpFolder, "Project1");
                var project2  = CreateProject(tmpFolder, "Project2");
                var project3  = CreateProject(tmpFolder, "Project3");

                var actual = VisualStudioHelper.GetVisualStudioSolutionFiles(tmpFolder, tmpFolder).ToArray();
                Assert(actual, new[]
                {
                    project1, project2, project3
                });
            }
            {
                // 2
                var tmpFolder = GetTempFolder();
                var project1  = CreateProject(tmpFolder, "Project1");
                var project2  = CreateProject(tmpFolder, "Project2");
                var project3  = CreateProject(tmpFolder, "Project3");
                var solution1 = CreateSolution(tmpFolder, "Solution1", project1);
                var solution2 = CreateSolution(tmpFolder, "Solution2", project1, project2);

                var actual = VisualStudioHelper.GetVisualStudioSolutionFiles(tmpFolder, tmpFolder).ToArray();
                Assert(actual, new[]
                {
                    solution1, solution2, project3
                });
            }
        }