Exemplo n.º 1
0
        protected static MsBuildExeFixtureResult ExecuteMsBuildExe(Action <ProjectCreator> extendProject)
        {
            var fixture = CreateLocalRepositoryFixture();

            var msbuildFixture = new MsBuildExeFixture(fixture, fixture.RepositoryPath);

            msbuildFixture.CreateTestProject(extendProject);

            return(msbuildFixture.Execute());
        }
Exemplo n.º 2
0
        protected static MsBuildExeFixtureResult ExecuteMsBuildExeInBuildServer(Action <ProjectCreator> extendProject)
        {
            var fixture = CreateRemoteRepositoryFixture();

            var msbuildFixture = new MsBuildExeFixture(fixture, fixture.LocalRepositoryFixture.RepositoryPath);

            msbuildFixture.CreateTestProject(extendProject);
            msbuildFixture.WithEnv(env.ToArray());

            return(msbuildFixture.Execute());
        }
Exemplo n.º 3
0
        protected static MsBuildExeFixtureResult ExecuteMsBuildExe(Action <ProjectCreator> extendProject)
        {
            var fixture = CreateLocalRepositoryFixture();

            var msbuildFixture = new MsBuildExeFixture(fixture, fixture.RepositoryPath);

            msbuildFixture.CreateTestProject(extendProject);

            var result = msbuildFixture.Execute();

            if (result.MsBuild.OverallSuccess == false)
            {
                Console.WriteLine(result.Output);
            }
            return(result);
        }