src/GenFx.Wpf.Tests/ExecutionPanelTest.cs
/// <summary>
/// Tests that the <see cref="ExecutionPanel.StartExecutionCommand"/> works correctly.
/// </summary>
Tests that the  works correctly.
Tests that the works correctly .
[StaFact]
        public void ExecutionPanel_StartExecutionCommand_Execute()
        {
            ExecutionPanel panel = new ExecutionPanel
            {
                ExecutionContext = new ExecutionContext(CreateTestAlgorithm(true))
            };
            ExecutionPanel.StartExecutionCommand.Execute(null, panel);
            DispatcherHelper.DoEvents();
            TestHelper.WaitForResult(ExecutionState.Running, () => panel.ExecutionContext.ExecutionState);
            ((TestTerminator)panel.ExecutionContext.GeneticAlgorithm.Terminator).IsCompleteValue = true;
        }
[ StaFact ] public void ExecutionPanel_StartExecutionCommand_Execute ( ) { ExecutionPanel panel = new ExecutionPanel { ExecutionContext = new ExecutionContext ( CreateTestAlgorithm ( true ) ) } ; ExecutionPanel . StartExecutionCommand . Execute ( null , panel ) ; DispatcherHelper . DoEvents ( ) ; TestHelper . WaitForResult ( ExecutionState . Running , ( ) => panel . ExecutionContext . ExecutionState ) ; ( ( TestTerminator ) panel . ExecutionContext . GeneticAlgorithm . Terminator ) . IsCompleteValue = true ; }
Tests that the  works correctly.
Tests that the works correctly .
// Trigger the algorithm to complete