Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void SetAndGetMargins() { var button = new Button(Rectangle.One) { LeftMargin = new Margin(Edge.Left, 1), RightMargin = new Margin(Edge.Right, 2), TopMargin = new Margin(Edge.Top, 3), BottomMargin = new Margin(Edge.Bottom, 4) }; Assert.AreEqual(new Margin(Edge.Left, 1), button.LeftMargin); Assert.AreEqual(new Margin(Edge.Right, 2), button.RightMargin); Assert.AreEqual(new Margin(Edge.Top, 3), button.TopMargin); Assert.AreEqual(new Margin(Edge.Bottom, 4), button.BottomMargin); }
See Also