コード例 #1
0
        public void EnvironmentViewer_Ctor()
        {
            EnvironmentViewer viewer = new EnvironmentViewer();

            Assert.Equal(ExecutionState.Idle, viewer.ExecutionState);
            Assert.Null(viewer.Environment);
        }
コード例 #2
0
        public void EnvironmentViewer_EnvironmentProperty()
        {
            EnvironmentViewer  viewer      = new EnvironmentViewer();
            GeneticEnvironment environment = new GeneticEnvironment(Mock.Of <GeneticAlgorithm>());

            viewer.Environment = environment;
            Assert.Same(environment, viewer.Environment);
        }
コード例 #3
0
        public void EnvironmentViewer_ExecutionStateProperty()
        {
            EnvironmentViewer viewer = new EnvironmentViewer
            {
                ExecutionState = ExecutionState.PausePending
            };

            Assert.Equal(ExecutionState.PausePending, viewer.ExecutionState);
        }