public void BothCellVertices(int pointCount) { border = new Rectangle(new Point(0, 10), new Point(10, 0)); scatterPlot = new ScatterPlot(border, pointCount); voronoi = scatterPlot.Voronoi(); Assert.AreEqual(pointCount, voronoi.Cells().Count()); }
public void VoronoiWithZeroSitesThrowsArgumentException() { points = 0; border = new Rectangle(new Point(0, 10), new Point(10, 0)); scatterPlot = new ScatterPlot(border, points); Assert.Throws <ArgumentException>(() => scatterPlot.Voronoi()); }