public void ReturnsPoints_EnoughPoints(string inputFile, string expectedFile)
        {
            var input    = Data.GetSoaPoints(inputFile);
            var expected = Data.GetAosPoints(expectedFile).ToArray();

            CollectionAssert.AreEqual(expected, ConvexHullIntrinsics.QuickHull(input).ToArray());
        }
 public void ThrowsArgumentException_ZeroPoints()
 {
     ConvexHullIntrinsics.QuickHull(new Points(0));
 }
 public void ThrowsArgumentException_NotEnoughPoints()
 {
     ConvexHullIntrinsics.QuickHull(Data.GetSoaTwoPoints());
 }
Exemplo n.º 4
0
 public void Intrinsics()
 {
     ConvexHullIntrinsics.QuickHull(_points);
 }