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, Ignore] public void IsValidPositionInEmptyGrid() { Assert.IsFalse(grid.IsValidPosition(new Block(displayMode, content, new Vector2D(-1, 1)))); Assert.IsFalse(grid.IsValidPosition(new Block(displayMode, content, new Vector2D(9, 1)))); Assert.IsFalse(grid.IsValidPosition(new Block(displayMode, content, new Vector2D(0, 0)))); //using (NUnit.Framework.Randomizer.Use(new FixedRandom(IBlock))) Assert.IsFalse(grid.IsValidPosition(new Block(displayMode, content, new Vector2D(0, 17)))); Assert.IsTrue(grid.IsValidPosition(new Block(displayMode, content, new Vector2D(2, 2)))); }
See Also