예제 #1
0
        public void GetCellBounds(int cellX, int cellY, int cellW, int cellH, int x, int y, int w, int h)
        {
            var floorPlan = new TestGridFloorPlan();

            floorPlan.InitSize(5, 5, 5, 3);
            Rect bounds        = floorPlan.GetCellBounds(new Rect(cellX, cellY, cellW, cellH));
            Rect compareBounds = new Rect(x, y, w, h);

            Assert.That(bounds, Is.EqualTo(compareBounds));
        }