예제 #1
0
 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());
 }
예제 #2
0
 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());
 }