private void BuildProjectJson(string projectDirectory)
        {
            Console.WriteLine(projectDirectory);
            var projectFile = "\"" + Path.Combine(projectDirectory, "project.json") + "\"";

            var result = new BuildPJCommand()
                         .WithCapturedOutput()
                         .Execute(projectFile);

            result.Should().Pass();
        }
示例#2
0
        private void BuildProjectJson(DirectoryInfo projectDirectory)
        {
            Console.WriteLine(projectDirectory);

            var projectFile = $"\"{projectDirectory.GetFile("project.json").FullName}\"";

            var result = new BuildPJCommand()
                         .WithCapturedOutput()
                         .WithForwardingToConsole()
                         .Execute(projectFile);

            result.Should().Pass();
        }