public void TestEmpty() { Assert.IsFalse(aabbOne.IsEmpty()); Assert.IsFalse(aabbHalf.IsEmpty()); Assert.IsFalse(aabbZeroTwo.IsEmpty()); Assert.IsFalse(aabbOneTwo.IsEmpty()); AABB2D aabb = new AABB2D(new Vector2(1f, 2f), new Vector2(-1f, -2f)); Assert.IsTrue(aabb.IsEmpty()); aabb.Valid(); Assert.IsFalse(aabb.IsEmpty()); Assert.AreEqual(aabb.min, new Vector2(-1f, -2f)); Assert.AreEqual(aabb.max, new Vector2(1f, 2f)); }