src/GenFx.Wpf.Tests/ExecutionPanelTest.cs
/// <summary>
/// Tests that the <see cref="ExecutionPanel.StopExecutionCommand"/> works correctly.
/// </summary>
Tests that the  works correctly.
Tests that the works correctly .
[StaFact]
        public void ExecutionPanel_StopExecutionCommand_Execute_FromRunning()
        {
            ExecutionPanel panel = new ExecutionPanel
            {
                ExecutionContext = new ExecutionContext(Mock.Of<GeneticAlgorithm>())
            };
            panel.ExecutionContext.ExecutionState = ExecutionState.Running;
            panel.ViewModel.StopExecution();
            Assert.Equal(ExecutionState.IdlePending, panel.ExecutionContext.ExecutionState);
        }
[ StaFact ] public void ExecutionPanel_StopExecutionCommand_Execute_FromRunning ( ) { ExecutionPanel panel = new ExecutionPanel { ExecutionContext = new ExecutionContext ( Mock . Of < GeneticAlgorithm > ( ) ) } ; panel . ExecutionContext . ExecutionState = ExecutionState . Running ; panel . ViewModel . StopExecution ( ) ; Assert . Equal ( ExecutionState . IdlePending , panel . ExecutionContext . ExecutionState ) ; }
Tests that the  works correctly.
Tests that the works correctly .