示例#1
0
        public void setCoordinate_Selector()
        {
            MKPolyline pl = MKPolyline.FromPoints(new MKMapPoint [] { });

            try {
                pl.Coordinate = new CLLocationCoordinate2D(10, 20);
            }
            catch (MonoTouchException mte) {
                Assert.True(mte.Message.Contains("unrecognized selector sent to instance"));
            }
            catch {
                Assert.Fail("API could be working/implemented");
            }
        }
示例#2
0
        public void From_PointEmpty()
        {
            MKPolyline pl = MKPolyline.FromPoints(new MKMapPoint [] { });

            CheckEmpty(pl);
        }
示例#3
0
 public void FromPoints_Null()
 {
     Assert.Throws <ArgumentNullException> (() => MKPolyline.FromPoints(null));
 }
示例#4
0
 public void FromPoints_Null()
 {
     MKPolyline.FromPoints(null);
 }
 public new static BindingMKPolyline FromPoints(MKMapPoint[] points)
 => new BindingMKPolyline(MKPolyline.FromPoints(points));