public void GivenChartMultipleLineDataSeries_WhenUpdatedAfterChartMultipleLineDataLinesChanged_ChartMultipleLineDataSeriesLinesChanged() { // Given var chartMultipleLineData = new ChartMultipleLineData("Test name") { Lines = new[] { new[] { new Point2D(1.1, 2.2) } } }; var chartMultipleLineDataSeries = new ChartMultipleLineDataSeries(chartMultipleLineData); IEnumerable <DataPoint>[] drawnLines = chartMultipleLineDataSeries.Lines.ToArray(); // When chartMultipleLineData.Lines = new[] { new[] { new Point2D(3.3, 4.4) } }; chartMultipleLineDataSeries.Update(); // Then CollectionAssert.AreNotEqual(drawnLines, chartMultipleLineDataSeries.Lines); }
public void Update_ChartMultipleLineDataWithTestProperties_ChartMultipleLineDataSeriesUpdatedAccordingly() { // Setup var chartMultipleLineData = new ChartMultipleLineData("Test name", new ChartLineStyle { Color = color, Width = 3, DashStyle = ChartLineDashStyle.Dash }); var chartMultipleLineDataSeries = new ChartMultipleLineDataSeries(chartMultipleLineData); SetChartMultipleLineDataTestProperties(chartMultipleLineData); // Precondition AssertChartMultipleLineDataSeriesDefaultProperties(chartMultipleLineDataSeries); // Call chartMultipleLineDataSeries.Update(); // Assert AssertChartMultipleLineDataSeriesTestProperties(chartMultipleLineDataSeries); }