src/GenFx.Wpf.Tests/ExecutionPanelViewModelTest.cs
/// <summary>
/// Tests that the <see cref="ExecutionPanelViewModel.StopExecution"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ExecutionPanelViewModel_StopExecution_FromPausedState()
        {
            ExecutionContext context = new ExecutionContext(Mock.Of<GeneticAlgorithm>())
            {
                ExecutionState = ExecutionState.Paused
            };
            using (ExecutionPanelViewModel viewModel = new ExecutionPanelViewModel(context))
            {
                viewModel.StopExecution();
            }
            Assert.Equal(ExecutionState.Idle, context.ExecutionState);
        }
[ Fact ] public void ExecutionPanelViewModel_StopExecution_FromPausedState ( ) { ExecutionContext context = new ExecutionContext ( Mock . Of < GeneticAlgorithm > ( ) ) { ExecutionState = ExecutionState . Paused } ; using ( ExecutionPanelViewModel viewModel = new ExecutionPanelViewModel ( context ) ) { viewModel . StopExecution ( ) ; } Assert . Equal ( ExecutionState . Idle , context . ExecutionState ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .