src/GenFx.Tests/MetricResultTest.cs
/// <summary>
/// Tests that the <see cref="MetricResult"/> constructor initializes the state correctly.
/// </summary>
Tests that the  constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .
[Fact]
        public void MetricResult_Ctor()
        {
            MockMetric metric = new MockMetric();
            MetricResult result = new MetricResult(1, 2, 3, metric);
            Assert.Equal(1, result.GenerationIndex);
            Assert.Equal(2, result.PopulationIndex);
            Assert.Equal(3, result.ResultValue);
            Assert.Same(metric, result.Metric);
        }
[ Fact ] public void MetricResult_Ctor ( ) { MockMetric metric = new MockMetric ( ) ; MetricResult result = new MetricResult ( 1 , 2 , 3 , metric ) ; Assert . Equal ( 1 , result . GenerationIndex ) ; Assert . Equal ( 2 , result . PopulationIndex ) ; Assert . Equal ( 3 , result . ResultValue ) ; Assert . Same ( metric , result . Metric ) ; }
Tests that the  constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .