Exemple #1
0
        public void Test_SubGridTreeBitMask_LeafExists_Negative()
        {
            var mask = new SubGridTreeBitMask();

            for (int i = 0; i < 100; i++)
            {
                for (int j = 0; j < 100; j++)
                {
                    int x = i * 10;
                    int y = j * 10;

                    mask.SetCell(x, y, true);
                }
            }

            for (int i = 0; i < 100; i++)
            {
                for (int j = 0; j < 100; j++)
                {
                    int x = (i + 1) * 1000000;
                    int y = (j + 1) * 1000000;

                    mask.LeafExists(x, y).Should().BeFalse();
                }
            }
        }