public static QueryConditionList WithinPolygon(string name, double[,] points) { if (name == null) { throw new ArgumentNullException("name"); } if (points == null) { throw new ArgumentNullException("points"); } return new QueryConditionList(name).WithinPolygon(points); }
public void TestWithinPolygonInvalidSecondDimension() { var points = new double[, ] { { 1, 2, 3 } }; Assert.Throws <ArgumentOutOfRangeException>(() => Query.WithinPolygon("loc", points)); }