コード例 #1
0
ファイル: TestBoolMatrix.cs プロジェクト: unhammer/gimp-sharp
        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)));
        }
コード例 #2
0
ファイル: TestBoolMatrix.cs プロジェクト: unhammer/gimp-sharp
        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)));
        }
コード例 #3
0
ファイル: TestBoolMatrix.cs プロジェクト: unhammer/gimp-sharp
        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)));
        }
コード例 #4
0
ファイル: TestBoolMatrix.cs プロジェクト: unhammer/gimp-sharp
        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)));
        }