public void CompileWithCorrectProperties_BuildSucceedNoErrors()
        {
            string projectPath = Path.Combine(ResourcesPath, CompilingProject);

            var command = new MSBuildCommand(new[] {projectPath, "Configuration=Debug"});

            CommandResult result = command.Execute();

            Assert.IsTrue(result.Success, result.Errors.AggregateAppend());

            Assert.AreEqual(0, result.Errors.Count);
        }
        public void CompileWithIncorrectProperties_BuildFailsHasErrors()
        {
            string projectPath = Path.Combine(ResourcesPath, CompilingProject);

            var command = new MSBuildCommand(new[] {projectPath, "Configuration=Foo"});

            CommandResult result = command.Execute();

            Assert.IsFalse(result.Success, result.Errors.AggregateAppend());

            Assert.AreNotEqual(0, result.Errors.Count);
        }
        public void CompileOKSolution_BuildSucceedNoErrors()
        {
            string solutionPath = Path.Combine(ResourcesPath, CompilingSolution);

            var command = new MSBuildCommand(new[] {solutionPath});

            CommandResult result = command.Execute();

            Assert.IsTrue(result.Success, result.Errors.AggregateAppend());

            Assert.AreEqual(0, result.Errors.Count);
        }
        public void CompileWrongProject_BuildFailsHasErrors()
        {
            string projectPath = Path.Combine(ResourcesPath, NonCompilingProject);

            var command = new MSBuildCommand(new[] {projectPath});

            CommandResult result = command.Execute();

            Assert.IsFalse(result.Success, result.Errors.AggregateAppend());

            Assert.AreNotEqual(0, result.Errors.Count);
        }