public void InsetRect() { var i = new UIEdgeInsets(10, 20, 30, 40); var r = new RectangleF(1, 2, 3, 4); r = i.InsetRect(r); Assert.That(r.X, Is.EqualTo((nfloat)21f), "X"); Assert.That(r.Y, Is.EqualTo((nfloat)12f), "Y"); Assert.That(r.Width, Is.EqualTo((nfloat)(-57f)), "Width"); Assert.That(r.Height, Is.EqualTo((nfloat)(-36f)), "Height"); Assert.False(i.Equals(UIEdgeInsets.Zero), "Equals(UIEdgeInsets)"); Assert.False(UIEdgeInsets.Zero.Equals((object)i), "Equals(object)"); }