Пример #1
0
        public void CleanLines_5Horizontal_CheckFromLeft_ScoreIs5()
        {
            var field = new int[Consts.FieldSize, Consts.FieldSize];

            for (int i = 1; i < 6; i++)
            {
                field[0, i] = _redLine;
            }

            _lines.InitTestField(field);

            int score = _lines.CleanLines(new Point(0, 1));

            Assert.AreEqual(5, score);

            for (int i = 1; i < 6; i++)
            {
                Assert.AreEqual(_redLine + 20, _lines.Field[0, i]);
            }

            CheckFiled(5);
        }