コード例 #1
0
        public void CheckPosInRectTest02()
        {
            posX  = 300; posY = 300;
            collX = 0; collY = 280; collW = 200; collH = 200;

            Vector2   position  = new Vector2(posX, posY);
            Rectangle collision = new Rectangle(collX, collY, collW, collH);

            Boolean posInRect = ControlManager.CheckPosInRect(position, collision);

            Assert.That(false, Is.EqualTo(posInRect));
        }