예제 #1
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)));
        }
예제 #2
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)));
 }
예제 #3
0
 public void EmptyIsOutside()
 {
     var verticalSpan = new VerticalSpan(new Rect(10, 10, 10, 10));
     Assert.AreEqual(true, verticalSpan.DoesntContain(Rect.Empty));
 }
예제 #4
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)));
 }
예제 #5
0
        public void EmptyIsOutside()
        {
            var verticalSpan = new VerticalSpan(new Rect(10, 10, 10, 10));

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