Beispiel #1
0
        public void IsNotInside()
        {
            const int width  = 43;
            const int height = 29;

            var b = new BoolMatrix(width, height);

            Assert.IsFalse(b.IsInside(new IntCoordinate(111, 133)));
            Assert.IsFalse(b.IsInside(new IntCoordinate(width, height)));
            Assert.IsFalse(b.IsInside(new IntCoordinate(-1, -1)));
        }
Beispiel #2
0
        public void IsInside()
        {
            const int width  = 43;
            const int height = 29;

            var b = new BoolMatrix(width, height);

            Assert.IsTrue(b.IsInside(new IntCoordinate(11, 13)));
            Assert.IsTrue(b.IsInside(new IntCoordinate(width - 1, height - 1)));
            Assert.IsTrue(b.IsInside(new IntCoordinate(0, 0)));
        }
Beispiel #3
0
        public void IsNotInside()
        {
            const int width = 43;
              const int height = 29;

              var b = new BoolMatrix(width, height);
              Assert.IsFalse(b.IsInside(new IntCoordinate(111, 133)));
              Assert.IsFalse(b.IsInside(new IntCoordinate(width, height)));
              Assert.IsFalse(b.IsInside(new IntCoordinate(-1, -1)));
        }
Beispiel #4
0
        public void IsInside()
        {
            const int width = 43;
              const int height = 29;

              var b = new BoolMatrix(width, height);
              Assert.IsTrue(b.IsInside(new IntCoordinate(11, 13)));
              Assert.IsTrue(b.IsInside(new IntCoordinate(width - 1, height - 1)));
              Assert.IsTrue(b.IsInside(new IntCoordinate(0, 0)));
        }