Namespace: Blocks.Tests
Assembly: Blocks.Tests (in Blocks.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: Blocks.Tests (in Blocks.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void ConstructorTopLeft() { var block = new Block(displayMode, content, new Vector2D(1, 2)); Assert.AreEqual(1, block.Left); Assert.AreEqual(2, block.Top); }
[Test, CloseAfterFirstFrame] public void Left() { var shape = new Block(displayMode, content, Vector2D.Zero) { Left = 1 }; Assert.AreEqual(1, shape.Left); Assert.AreEqual(1, shape.Bricks[0].TopLeftGridCoord.X); Assert.AreEqual(1, shape.Bricks[1].TopLeftGridCoord.X); Assert.AreEqual(1, shape.Bricks[2].TopLeftGridCoord.X); Assert.AreEqual(1, shape.Bricks[3].TopLeftGridCoord.X); }
See Also