public void ParentRectangleTests() { AbsoluteConstraint constraint = new AbsoluteConstraint(10.0f); RectangleF expected = new RectangleF(100.0f, 100.0f, 100.0f, 100.0f); //constraint.ParentRectangle = expected; //Assert.AreEqual(expected, constraint.ParentRectangle); }
public void Construction() { float expectedValue = 13.6f; AbsoluteConstraint relation = new AbsoluteConstraint(expectedValue); Assert.IsNotNull(relation); Assert.AreEqual(expectedValue, relation.Value); }
public void TopTest() { float expectedValue = 13.6f; AbsoluteConstraint actual = new AbsoluteConstraint(expectedValue); RectangleF parentRectangle = new RectangleF(100.0f, 100.0f, 100.0f, 100.0f); //actual.ParentRectangle = parentRectangle; //Assert.AreEqual(expectedValue, actual.Top()); }
public void HeightTest() { float expectedValue = 13.6f; AbsoluteConstraint actual = new AbsoluteConstraint(expectedValue); //Assert.AreEqual(expectedValue, actual.Height()); }