public void TestGetCoordinatesWithPointAtInfinity()
        {
            var point = new ECPoint(groupHandle);

            ECPointHandle.SetToInfinity(groupHandle, point.Handle);

            Assert.Throws <InvalidOperationException>(() => point.GetCoordinates());
        }
        public void TestIsAtInfinity()
        {
            var validPoint = new ECPoint(groupHandle, rawPointHandle);

            Assert.That(!validPoint.IsAtInfinity);

            var pointAtInf = new ECPoint(groupHandle);

            ECPointHandle.SetToInfinity(groupHandle, pointAtInf.Handle);
            Assert.That(pointAtInf.IsAtInfinity);
        }