AnchoringTests Constructor Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Constructor()
Examples

[Test, CloseAfterFirstFrame]
public void Constructor()
{
    Assert.AreEqual(new Margin(Edge.Left), anchoring.LeftMargin);
    Assert.AreEqual(new Margin(Edge.Right), anchoring.RightMargin);
    Assert.AreEqual(new Margin(Edge.Top), anchoring.TopMargin);
    Assert.AreEqual(new Margin(Edge.Bottom), anchoring.BottomMargin);
    Assert.AreEqual(-1, anchoring.PercentageSpan);
}
See Also