src/GenFx.Wpf.Tests/MetricsChartTest.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 MetricsChart_Ctor()
        {
            MetricsChart chart = new MetricsChart();
            Assert.Null(chart.Population);
            Assert.Null(chart.Algorithm);
            Assert.Null(chart.SelectedMetrics);
            PlotModel model = chart.PlotModel;
            Assert.Equal(2, model.Axes.Count);
            Assert.IsType<LinearAxis>(model.Axes[0]);
            Assert.IsType<LinearAxis>(model.Axes[1]);
        }
[ StaFact ] public void MetricsChart_Ctor ( ) { MetricsChart chart = new MetricsChart ( ) ; Assert . Null ( chart . Population ) ; Assert . Null ( chart . Algorithm ) ; Assert . Null ( chart . SelectedMetrics ) ; PlotModel model = chart . PlotModel ; Assert . Equal ( 2 , model . Axes . Count ) ; Assert . IsType < LinearAxis > ( model . Axes [ 0 ] ) ; Assert . IsType < LinearAxis > ( model . Axes [ 1 ] ) ; }
Tests that the ctor initializes the state correctly.
Tests that the ctor initializes the state correctly .