public void PatternDoesNotMarkDifferentBricksInRowToDestroy() { var gameField = new GameField(10, 10) { { this.PositionsInRow[0], new Brick { BrickKind = 1 } }, { this.PositionsInRow[1], new Brick { BrickKind = 1 } }, { this.PositionsInRow[2], new Brick { BrickKind = 2 } }, { this.PositionsInRow[3], new Brick { BrickKind = 1 } }, { this.PositionsInRow[4], new Brick { BrickKind = 1 } } }; var pattern = new TPattern(); pattern.MarkBricksInPatternToDestroy(gameField); Assert.IsTrue(gameField.All(pair => !pair.Value.Destroy)); }