public void AddIndividualDatapoints_ValidDatasetAndTwoPoints_AddsTwoDatapoints() { Canvas canvas = new Canvas(); GraphData graphData = new GraphData(canvas); PointCollection points = new PointCollection(); for (int i = 0; i < 2; i++) { points.Add(new Point(i, 0)); } graphData.AddIndividualDatapoints(0, points); // X-axis, Y-axis, one polyline for the dataset, one polyline for the average, one datapoint Assert.AreEqual(5, graphData.canvasElementList.Count); }