Ejemplo n.º 1
0
        public void Union()
        {
            VerticalSpan verticalSpan = new VerticalSpan(new Rect(10, 10, 0, 10)).Union(new Rect(10, 5, 0, 10));

            Assert.AreEqual(false, verticalSpan.DoesntContain(new Rect(10, 10, 0, 5)));
            Assert.AreEqual(false, verticalSpan.DoesntContain(new Rect(10, 10, 0, 10)));
        }
Ejemplo n.º 2
0
        public void Cut()
        {
            VerticalSpan verticalSpan = new VerticalSpan(new Rect(10, 10, 10, 10)).Minus(new Rect(10, 15, 5, 5));

            Assert.AreEqual(true, verticalSpan.DoesntContain(new Rect(10, 10, 10, 12)));
            Assert.AreEqual(false, verticalSpan.DoesntContain(new Rect(10, 10, 10, 4)));
        }
Ejemplo n.º 3
0
 public void Union()
 {
     VerticalSpan verticalSpan = new VerticalSpan(new Rect(10, 10, 0, 10)).Union(new Rect(10, 5, 0, 10));
     Assert.AreEqual(false, verticalSpan.DoesntContain(new Rect(10, 10, 0, 5)));
     Assert.AreEqual(false, verticalSpan.DoesntContain(new Rect(10, 10, 0, 10)));
 }
Ejemplo n.º 4
0
 public void EmptyIsOutside()
 {
     var verticalSpan = new VerticalSpan(new Rect(10, 10, 10, 10));
     Assert.AreEqual(true, verticalSpan.DoesntContain(Rect.Empty));
 }
Ejemplo n.º 5
0
 public void Cut()
 {
     VerticalSpan verticalSpan = new VerticalSpan(new Rect(10, 10, 10, 10)).Minus(new Rect(10, 15, 5, 5));
     Assert.AreEqual(true, verticalSpan.DoesntContain(new Rect(10, 10, 10, 12)));
     Assert.AreEqual(false, verticalSpan.DoesntContain(new Rect(10, 10, 10, 4)));
 }
Ejemplo n.º 6
0
        public void EmptyIsOutside()
        {
            var verticalSpan = new VerticalSpan(new Rect(10, 10, 10, 10));

            Assert.AreEqual(true, verticalSpan.DoesntContain(Rect.Empty));
        }