public void CreateCovarianceMatrixAdaptationStrategyReturnsCorrectStrategyType()
        {
            var localConfiguration = CovarianceMatrixAdaptationInformationFlowSwitchTest.CreateConfiguration(focusOnIncumbent: true);
            var strategy           =
                CovarianceMatrixAdaptationInformationFlowSwitch.CreateCovarianceMatrixAdaptationStrategy <TestInstance, TestResult>(
                    localConfiguration,
                    this.GetDefaultParameterTree(),
                    this.GenomeBuilder,
                    this.GenomeSorter,
                    this.ResultStorageActor);

            Assert.Equal(
                typeof(LocalCovarianceMatrixAdaptationStrategy <TestInstance, TestResult>),
                strategy.GetType());

            var globalConfiguration = CovarianceMatrixAdaptationInformationFlowSwitchTest.CreateConfiguration(focusOnIncumbent: false);

            strategy =
                CovarianceMatrixAdaptationInformationFlowSwitch.CreateCovarianceMatrixAdaptationStrategy <TestInstance, TestResult>(
                    globalConfiguration,
                    this.GetDefaultParameterTree(),
                    this.GenomeBuilder,
                    this.GenomeSorter,
                    this.ResultStorageActor);
            Assert.Equal(
                typeof(GlobalCovarianceMatrixAdaptationStrategy <TestInstance, TestResult>),
                strategy.GetType());
        }
        public void DetermineCovarianceMatrixAdaptationStrategyTypeReturnsCorrectType()
        {
            var localConfiguration = CovarianceMatrixAdaptationInformationFlowSwitchTest.CreateConfiguration(focusOnIncumbent: true);

            Assert.Equal(
                typeof(LocalCovarianceMatrixAdaptationStrategy <TestInstance, TestResult>),
                CovarianceMatrixAdaptationInformationFlowSwitch.DetermineCovarianceMatrixAdaptationStrategyType <TestInstance, TestResult>(
                    localConfiguration));

            var globalConfiguration = CovarianceMatrixAdaptationInformationFlowSwitchTest.CreateConfiguration(focusOnIncumbent: false);

            Assert.Equal(
                typeof(GlobalCovarianceMatrixAdaptationStrategy <TestInstance, TestResult>),
                CovarianceMatrixAdaptationInformationFlowSwitch.DetermineCovarianceMatrixAdaptationStrategyType <TestInstance, TestResult>(
                    globalConfiguration));
        }