src/GenFx.Wpf.Tests/ExecutionPanelTest.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 .
[StaFact]
        public void ExecutionPanel_Ctor()
        {
            ExecutionPanel panel = new ExecutionPanel();
            Assert.Equal(4, panel.CommandBindings.Count);
            Assert.Equal(
                new RoutedCommand[]
                {
                    ExecutionPanel.StartExecutionCommand,
                    ExecutionPanel.StepExecutionCommand,
                    ExecutionPanel.PauseExecutionCommand,
                    ExecutionPanel.StopExecutionCommand,
                }
                .OrderBy(c => c.Name),
                panel.CommandBindings
                    .Cast<CommandBinding>()
                    .Select(c => c.Command)
                    .Cast<RoutedCommand>()
                    .OrderBy(c => c.Name)
                    .ToList());            
        }
[ StaFact ] public void ExecutionPanel_Ctor ( ) { ExecutionPanel panel = new ExecutionPanel ( ) ; Assert . Equal ( 4 , panel . CommandBindings . Count ) ; Assert . Equal ( new RoutedCommand [ ] { ExecutionPanel . StartExecutionCommand , ExecutionPanel . StepExecutionCommand , ExecutionPanel . PauseExecutionCommand , ExecutionPanel . StopExecutionCommand , } . OrderBy ( c => c . Name ) , panel . CommandBindings . Cast < CommandBinding > ( ) . Select ( c => c . Command ) . Cast < RoutedCommand > ( ) . OrderBy ( c => c . Name ) . ToList ( ) ) ; }
Tests that the ctor initializes the state correctly.
Tests that the ctor initializes the state correctly .