public void EnvironmentViewer_Ctor() { EnvironmentViewer viewer = new EnvironmentViewer(); Assert.Equal(ExecutionState.Idle, viewer.ExecutionState); Assert.Null(viewer.Environment); }
public void EnvironmentViewer_EnvironmentProperty() { EnvironmentViewer viewer = new EnvironmentViewer(); GeneticEnvironment environment = new GeneticEnvironment(Mock.Of <GeneticAlgorithm>()); viewer.Environment = environment; Assert.Same(environment, viewer.Environment); }
public void EnvironmentViewer_ExecutionStateProperty() { EnvironmentViewer viewer = new EnvironmentViewer { ExecutionState = ExecutionState.PausePending }; Assert.Equal(ExecutionState.PausePending, viewer.ExecutionState); }