DisplayData Init() { var dd = new DisplayData(); var pts = new List <System.Drawing.PointF>(); pts.Add(new System.Drawing.PointF(1, 1)); pts.Add(new System.Drawing.PointF(1, 2)); pts.Add(new System.Drawing.PointF(2, 2)); dd.AddRange(pts); return(dd); }
public void DD_AddRange() { var dd = new DisplayData(); var pts = new List <System.Drawing.PointF>(); pts.Add(new System.Drawing.PointF(0, 0)); pts.Add(new System.Drawing.PointF(0, 0)); pts.Add(new System.Drawing.PointF(0, 0)); dd.AddRange(pts); Assert.AreEqual(3, dd.Count); }