Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void getTilePositionsTest()
        public virtual void getTilePositionsTest()
        {
            foreach (int tileSize in TILE_SIZES)
            {
                BoundingBox          boundingBox   = new BoundingBox(-1, -1, 1, 1);
                IList <TilePosition> tilePositions = LayerUtil.getTilePositions(boundingBox, (sbyte)0, new Point(0, 0), tileSize);
                Assert.assertEquals(1, tilePositions.Count);

                TilePosition tilePosition = tilePositions[0];
                Assert.assertEquals(new Tile(0, 0, (sbyte)0, tileSize), tilePosition.tile);
                Assert.assertEquals(new Point(0, 0), tilePosition.point);
            }
        }