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

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