public void RectInitialization() { Rect2D r = Rect2D.FromExtents(0, 0, 10, 10); Assert.AreEqual(new int2(0, 0), r.Position); Assert.AreEqual(new int2(10, 10), r.Max); Assert.AreEqual(new int2(10, 10), r.Size); r = Rect2D.FromPositionSize(5, 5, 5, 5); Assert.IsFalse(r.Intersect(new int2(0, 0))); Assert.AreEqual(new int2(5, 5), r.Position); Assert.AreEqual(new int2(5, 5), r.Size); }