public void TestGetValidVerticalPositionMethod() { Position pos = new Position(1, 1); var moves = PositionUtil.GetValidVerticalPosition(pos).ToList(); Assert.IsNotNull(moves); Assert.AreEqual(7, moves.Count); var possibles = new[] { new Position(2, 1), new Position(3, 1), new Position(4, 1), new Position(5, 1), new Position(6, 1), new Position(7, 1), new Position(8, 1) }; foreach (var possible in possibles) { Assert.IsTrue(moves.Contains(possible)); } }