public void ContainsTrueTest()
 {
     var s = new TestSpatial(32, 32, 32, 32);
     var r = new TestSpatial(40, 40, 3, 3);
     Assert.IsTrue(s.Contains(r));
     Assert.IsFalse(r.Contains(s));
 }
 public void ContainsOverlapTest()
 {
     var s = new TestSpatial(32, 32, 32, 32);
     var r = new TestSpatial(32, 32, 32, 32);
     Assert.IsTrue(s.Contains(r));
     Assert.IsTrue(r.Contains(s));
 }
 public void ContainsHardlyContainedTest()
 {
     var s = new TestSpatial(32, 32, 32, 32);
     var r = new TestSpatial(33, 33, 30, 30);
     Assert.IsTrue(s.Contains(r));
     Assert.IsFalse(r.Contains(s));
 }
Beispiel #4
0
        public void ContainsTrueTest()
        {
            var s = new TestSpatial(32, 32, 32, 32);
            var r = new TestSpatial(40, 40, 3, 3);

            Assert.IsTrue(s.Contains(r));
            Assert.IsFalse(r.Contains(s));
        }
Beispiel #5
0
        public void ContainsOverlapTest()
        {
            var s = new TestSpatial(32, 32, 32, 32);
            var r = new TestSpatial(32, 32, 32, 32);

            Assert.IsTrue(s.Contains(r));
            Assert.IsTrue(r.Contains(s));
        }
Beispiel #6
0
        public void ContainsHardlyContainedTest()
        {
            var s = new TestSpatial(32, 32, 32, 32);
            var r = new TestSpatial(33, 33, 30, 30);

            Assert.IsTrue(s.Contains(r));
            Assert.IsFalse(r.Contains(s));
        }