public void TestRectangleColliderPointIntersection()
        {
            GameObject gameObject = new GameObject(new Vector2(100, 100), "");

            gameObject.Size = new Vector2(50, 50);
            RectangleCollider collider = new RectangleCollider(gameObject);

            Vector2 intersectionPoint = new Vector2(100, 100);

            Assert.IsTrue(collider.CheckIntersects(intersectionPoint));

            intersectionPoint = new Vector2(200, 200);
            Assert.IsFalse(collider.CheckIntersects(intersectionPoint));
        }
        public void TestRectangleColliderRectangleIntersection()
        {
            GameObject gameObject = new GameObject(new Vector2(100, 100), "");

            gameObject.Size = new Vector2(50, 50);
            RectangleCollider collider = new RectangleCollider(gameObject);

            Rectangle intersectionRectangle = new Rectangle(0, 0, 100, 100);

            Assert.IsTrue(collider.CheckIntersects(intersectionRectangle));

            intersectionRectangle = new Rectangle(50, 50, 50, 50);
            Assert.IsTrue(collider.CheckIntersects(intersectionRectangle));

            intersectionRectangle = new Rectangle(0, 0, 10, 10);
            Assert.IsFalse(collider.CheckIntersects(intersectionRectangle));

            intersectionRectangle = new Rectangle(175, 100, 50, 50);
            Assert.IsFalse(collider.CheckIntersects(intersectionRectangle));
        }