Ejemplo n.º 1
0
        public void Contains_PointInGroup()
        {
            ShapeGroup shapeGroup = new ShapeGroup();

            shapeGroup.Add(new Circle(0, 0, 0));

            Assert.That(shapeGroup.Contains(0, 0), Is.True);
        }
Ejemplo n.º 2
0
        public void Contains_ShapeInGroup()
        {
            ShapeGroup shapeGroup = new ShapeGroup();
            Circle     c          = new Circle(0, 0, 0);

            shapeGroup.Add(c);

            Assert.That(shapeGroup.Contains(c), Is.True);
        }
Ejemplo n.º 3
0
        public void Contains_PointNotInGroup()
        {
            ShapeGroup shapeGroup = new ShapeGroup();

            Assert.That(shapeGroup.Contains(0, 0), Is.False);
        }
Ejemplo n.º 4
0
        public void Contains_Null()
        {
            ShapeGroup shapeGroup = new ShapeGroup();

            Assert.That(shapeGroup.Contains(null), Is.False);
        }