MsBuild() public method

Creates a BuildTask using MSBuild
public MsBuild ( Action args ) : void
args Action
return void
Esempio n. 1
0
 public void ShouldExecMsBuild()
 {
     var mock = MockRepository.GenerateStub<IActionExcecutor>();
     var subject = new Compilers(mock);
     Action<MsBuildTask> action = x => x.ProjectOrSolutionFilePath("blah");
     subject.MsBuild(action);
     mock.AssertWasCalled(x=>x.Execute(action));
 }
Esempio n. 2
0
        public void ShouldExecMsBuild()
        {
            var mock    = MockRepository.GenerateStub <IActionExcecutor>();
            var subject = new Compilers(mock);
            Action <MsBuildTask> action = x => x.ProjectOrSolutionFilePath("blah");

            subject.MsBuild(action);
            mock.AssertWasCalled(x => x.Execute(action));
        }