Esempio n. 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)));
        }
Esempio n. 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)));
        }
Esempio n. 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)));
        }
Esempio n. 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)));
        }