public void TestSelection()
{
Point p1, p2, p3;
List<Point> l;
Selection s;
p1 = new Point (2, 2);
p2 = new Point (3, 5);
p3 = new Point (6, 8);
l = new List<Point> ();
l.Add (p1);
l.Add (p2);
l.Add (p3);
MultiPoints m = new MultiPoints (l);
s = m.GetSelection (new Point (3, 5), 1);
Assert.AreEqual (SelectionPosition.All, s.Position);
s = m.GetSelection (new Point (0, 5), 1);
Assert.IsNull (s);
s = m.GetSelection (new Point (5, 12), 1);
Assert.IsNull (s);
}