public void files_for_classic_solution()
 {
     SolutionFiles
     .FromDirectory(theScenario.DirectoryForSolution("HtmlTags"))
     .Mode
     .ShouldEqual(SolutionMode.Classic);
 }
 public void files_for_ripple_solution()
 {
     SolutionFiles
     .FromDirectory(theScenario.DirectoryForSolution("FubuCore"))
     .Mode
     .ShouldEqual(SolutionMode.Ripple);
 }
示例#3
0
        public static ISolutionBuilder NewSolutionBuilder(Solution solution)
        {
            var loader = new InMemorySolutionLoader(solution);
            var files  = SolutionFiles.FromDirectory(RippleFileSystem.CurrentDirectory(), loader);

            return(new SolutionBuilder(files, ProjectReader.Basic()));
        }
        public void files_for_nuget_solution()
        {
            using (var sandbox = DirectorySandbox.Create())
            {
                sandbox.CreateFile("MySolution.sln");
                sandbox.CreateDirectory("MyProject");
                sandbox.CreateFile("MyProject", "MyProject.csproj");
                sandbox.CreateFile("MyProject", "packages.config");

                SolutionFiles
                .FromDirectory(sandbox.Directory)
                .Loader
                .ShouldBeOfType <NuGetSolutionLoader>();
            }
        }
        public void files_for_empty_xml_ripple_solution()
        {
            using (var sandbox = DirectorySandbox.Create())
            {
                sandbox.StopAtParent();

                sandbox.CreateXmlFile("ripple.config");

                sandbox.CreateDirectory("src");
                sandbox.CreateFile("src", "MySolution.sln");

                sandbox.CreateDirectory("src", "MyProject");
                sandbox.CreateFile("src", "MyProject", "MyProject.csproj");

                SolutionFiles
                .FromDirectory(sandbox.Directory)
                .Loader
                .ShouldBeOfType <XmlSolutionLoader>();
            }
        }
示例#6
0
        public static ISolutionBuilder Builder()
        {
            var files = SolutionFiles.FromDirectory(RippleFileSystem.CurrentDirectory());

            return(new SolutionBuilder(files, ProjectReader.Basic()));
        }