public void It_does_not_compile_native_when_the_native_parameter_is_not_passed()
        {
            var compilerController = new CompilationDriver(_managedCompilerMock.Object, _nativeCompilerMock.Object);

            compilerController.Compile(_contexts, _args);

            _nativeCompilerMock.Verify(c => c.Compile(It.IsAny<ProjectContext>(), It.IsAny<BuildCommandApp>()), Times.Never);
        }
Exemplo n.º 2
0
        public void It_does_not_compile_native_when_the_native_parameter_is_not_passed()
        {
            var compilerController = new CompilationDriver(_managedCompilerMock.Object, _nativeCompilerMock.Object);

            compilerController.Compile(_contexts, _args);

            _nativeCompilerMock.Verify(c => c.Compile(It.IsAny <ProjectContext>(), It.IsAny <CompilerCommandApp>()), Times.Never);
        }
        public void It_compiles_all_project_contexts()
        {
            var compiledProjectContexts = new List<ProjectContext>();
            _managedCompilerMock.Setup(c => c
                .Compile(It.IsAny<ProjectContext>(), It.IsAny<BuildCommandApp>()))
                .Callback<ProjectContext, BuildCommandApp>((p, c) => compiledProjectContexts.Add(p))
                .Returns(true);

            var compilerController = new CompilationDriver(_managedCompilerMock.Object, _nativeCompilerMock.Object);

            compilerController.Compile(_contexts, _args);

            compiledProjectContexts.Should().BeEquivalentTo(_contexts);
        }
Exemplo n.º 4
0
        public void It_compiles_all_project_contexts()
        {
            var compiledProjectContexts = new List <ProjectContext>();

            _managedCompilerMock.Setup(c => c
                                       .Compile(It.IsAny <ProjectContext>(), It.IsAny <CompilerCommandApp>()))
            .Callback <ProjectContext, CompilerCommandApp>((p, c) => compiledProjectContexts.Add(p))
            .Returns(true);

            var compilerController = new CompilationDriver(_managedCompilerMock.Object, _nativeCompilerMock.Object);

            compilerController.Compile(_contexts, _args);

            compiledProjectContexts.Should().BeEquivalentTo(_contexts);
        }
Exemplo n.º 5
0
 public ExecutionSteps(ExecutionDriver executionDriver, CompilationDriver compilationDriver)
 {
     _executionDriver   = executionDriver;
     _compilationDriver = compilationDriver;
 }
Exemplo n.º 6
0
 public ExecutionDriver(VSTestExecutionDriver vsTestExecutionDriver, CompilationDriver compilationDriver, TestRunConfiguration testRunConfiguration)
 {
     _vsTestExecutionDriver = vsTestExecutionDriver;
     _compilationDriver     = compilationDriver;
     _testRunConfiguration  = testRunConfiguration;
 }
Exemplo n.º 7
0
 public MultipleSpecsProjectsSteps(ProjectsDriver projectsDriver, CompilationDriver compilationDriver, CompilationResultDriver compilationResultDriver)
 {
     _projectsDriver          = projectsDriver;
     _compilationDriver       = compilationDriver;
     _compilationResultDriver = compilationResultDriver;
 }
Exemplo n.º 8
0
 public ProjectSteps(ProjectsDriver projectsDriver, CompilationDriver compilationDriver, CompilationResultDriver compilationResultDriver)
 {
     _projectsDriver          = projectsDriver;
     _compilationDriver       = compilationDriver;
     _compilationResultDriver = compilationResultDriver;
 }
Exemplo n.º 9
0
 public GeneratorSteps(CompilationDriver compilationDriver, CompilationResultDriver compilationResultDriver)
 {
     _compilationDriver       = compilationDriver;
     _compilationResultDriver = compilationResultDriver;
 }