예제 #1
0
        public void TestMake()
        {
            var workflow = SorterCompParaPoolWorkflow.Make(
                sorterLayer: TestData.Layers.SorterLayer(),
                switchableGroupLayer: TestData.Layers.SwitchableGroupLayer(),
                sorterCompParaPoolParams: TestData.Layers.SorterCompParaPoolParams(),
                generation: 0
                );

            Assert.IsNotNull(workflow);
        }
예제 #2
0
        public void TestSteps()
        {
            var workflow = SorterCompParaPoolWorkflow.Make(
                sorterLayer: TestData.Layers.SorterLayer(),
                switchableGroupLayer: TestData.Layers.SwitchableGroupLayer(),
                sorterCompParaPoolParams: TestData.Layers.SorterCompParaPoolParams(),
                generation: 0
                );

            var seedList    = TestData.Layers.Seeds.Take(5).ToList();
            var newWorkflow = workflow.Step(seedList[0]);

            Assert.AreEqual(newWorkflow.CompWorkflowState, CompWorkflowState.RunCompetition);
            newWorkflow = newWorkflow.Step(seedList[1]);
            Assert.AreEqual(newWorkflow.CompWorkflowState, CompWorkflowState.EvaluateResults);
        }