Exemple #1
0
        public void ShouldBuildVBSharpCompiler()
        {
            var        subject    = new Compilers();
            TargetType targetType = subject.Vbc;

            Assert.That(targetType._compiler, Is.EqualTo("vbc.exe"));
        }
 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));
 }
Exemple #3
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));
        }
 public void ShouldBuildVBSharpCompiler()
 {
     var subject = new Compilers();
     TargetType targetType = subject.Vbc;
     Assert.That(targetType._compiler, Is.EqualTo("vbc.exe"));
 }