src/GenFx.Components.Tests/BoltzmannSelectionOperatorTest.cs
/// <summary>
/// Tests that the constructor initializes the state correctly.
/// </summary>
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .
[Fact]
        public void BoltzmannSelectionOperator_Ctor()
        {
            double initialTemp = 10;
            GeneticAlgorithm algorithm = GetMockAlgorithm(initialTemp);
            FakeBoltzmannSelectionOperator op = new FakeBoltzmannSelectionOperator { InitialTemperature = initialTemp };
            op.Initialize(algorithm);
            Assert.Equal(initialTemp, op.GetTemp());
        }
[ Fact ] public void BoltzmannSelectionOperator_Ctor ( ) { double initialTemp = 10 ; GeneticAlgorithm algorithm = GetMockAlgorithm ( initialTemp ) ; FakeBoltzmannSelectionOperator op = new FakeBoltzmannSelectionOperator { InitialTemperature = initialTemp } ; op . Initialize ( algorithm ) ; Assert . Equal ( initialTemp , op . GetTemp ( ) ) ; }
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .