TEST(AxisAlignedBoundingBox, setExtents)
{
	Vector3 min(-1, -1, -1);
	Vector3 max(1, 1, 1);

	AxisAlignedBoundingBox aabb;
	aabb.setExtents(min, max);

	ASSERT_EQ(min, aabb.getMinimum());
	ASSERT_EQ(max, aabb.getMaximum());
}
TEST(AxisAlignedBoundingBox, Merge)
{
	AxisAlignedBoundingBox aabb;

	{
		Vector3 min(-1, -1, -1);
		Vector3 max(0, 0, 0);
		AxisAlignedBoundingBox aabbComponent(min, max);
		aabb.merge(aabbComponent);
	}
	{
		Vector3 min(0, 0, 0);
		Vector3 max(1, 1, 1);
		AxisAlignedBoundingBox aabbComponent(min, max);
		aabb.merge(aabbComponent);
	}

	Vector3 expectedMin(-1, -1, -1);
	Vector3 expectedMax(1, 1, 1);
	ASSERT_EQ(expectedMin, aabb.getMinimum());
	ASSERT_EQ(expectedMax, aabb.getMaximum());
}