Exemplo n.º 1
0
        public void IsRunningMultipleNodes()
        {
            // Verify TEM is running singleProc mode before we can test to make sure EngineProxy is correctly using the value
            Assertion.Assert("Expected TEM to be running singleProcMode", taskExecutionModule.GetExecutionModuleMode() == TaskExecutionModule.TaskExecutionModuleMode.SingleProcMode);
            Assertion.Assert("Expected EngineProxy for TEM running in singleProc mode to return false for IsRunningMultipleNodes", engineProxy.IsRunningMultipleNodes == false);

            // Verify TEM is running MultiProc mode before we can test to make sure EngineProxy is correctly using the value
            TaskExecutionModule.TaskExecutionModuleMode moduleMode = taskExecutionModule2.GetExecutionModuleMode();
            Assertion.Assert("Expected TEM to be not be running SingleProcMode", moduleMode != TaskExecutionModule.TaskExecutionModuleMode.SingleProcMode);
            Assertion.Assert("Expected EngineProxy for TEM running in MultiProc mode to return true for IsRunningMultipleNodes", engineProxy2.IsRunningMultipleNodes);
        }
Exemplo n.º 2
0
 public MockTaskExecutionModule(EngineCallback nodeProxy, TaskExecutionModule.TaskExecutionModuleMode moduleMode)
     : base(nodeProxy, moduleMode, false)
 {
 }