src/GenFx.Wpf.Tests/ExecutionContextTest.cs
/// <summary>
/// Tests that the ctor initializes the state correctly.
/// </summary>
Tests that the ctor initializes the state correctly.
Tests that the ctor initializes the state correctly .
[Fact]
        public void ExecutionContext_Ctor()
        {
            GeneticAlgorithm algorithm = Mock.Of<GeneticAlgorithm>();
            ExecutionContext context = new ExecutionContext(algorithm);
            Assert.Same(algorithm, context.GeneticAlgorithm);
            Assert.Null(context.AlgorithmException);
            Assert.Equal(ExecutionState.Idle, context.ExecutionState);
        }
[ Fact ] public void ExecutionContext_Ctor ( ) { GeneticAlgorithm algorithm = Mock . Of < GeneticAlgorithm > ( ) ; ExecutionContext context = new ExecutionContext ( algorithm ) ; Assert . Same ( algorithm , context . GeneticAlgorithm ) ; Assert . Null ( context . AlgorithmException ) ; Assert . Equal ( ExecutionState . Idle , context . ExecutionState ) ; }
Tests that the ctor initializes the state correctly.
Tests that the ctor initializes the state correctly .