src/GenFx.Wpf.Tests/ExecutionPanelViewModelTest.cs
/// <summary>
/// Tests that the <see cref="ExecutionPanelViewModel.PauseExecution"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ExecutionPanelViewModel_PauseExecution()
        {
            ExecutionContext context = new ExecutionContext(Mock.Of<GeneticAlgorithm>())
            {
                ExecutionState = ExecutionState.Running
            };
            using (ExecutionPanelViewModel viewModel = new ExecutionPanelViewModel(context))
            {
                foreach (ExecutionState enumVal in Enum.GetValues(typeof(ExecutionState)))
                {
                    context.ExecutionState = enumVal;
                    viewModel.PauseExecution();
                    Assert.Equal(ExecutionState.PausePending, context.ExecutionState);
                }
            }
        }
[ Fact ] public void ExecutionPanelViewModel_PauseExecution ( ) { ExecutionContext context = new ExecutionContext ( Mock . Of < GeneticAlgorithm > ( ) ) { ExecutionState = ExecutionState . Running } ; using ( ExecutionPanelViewModel viewModel = new ExecutionPanelViewModel ( context ) ) { foreach ( ExecutionState enumVal in Enum . GetValues ( typeof ( ExecutionState ) ) ) { context . ExecutionState = enumVal ; viewModel . PauseExecution ( ) ; Assert . Equal ( ExecutionState . PausePending , context . ExecutionState ) ; } } }
Tests that the  method works correctly.
Tests that the method works correctly .