コード例 #1
0
        public void Must_Correctly_Evaluate_Vertical_Rows()
        {
            var expectedMatrix = MatrixExtensions.CreateMatrix(7, 7, _data);
            var verticalRows   = MatrixExtensions.EvaluateRows(i => expectedMatrix.GetHorizontalOrVertical(i, false));

            Assert.That(verticalRows.MaxCharacter, Is.EqualTo("DDD"));
            var expectedCounter = verticalRows.Values.ToList();

            Assert.That(expectedCounter.Count, Is.EqualTo(4));
            Assert.That(expectedCounter[0].Values, Is.EqualTo("BB"));
            Assert.That(expectedCounter[1].Values, Is.EqualTo("DD"));
            Assert.That(expectedCounter[2].Values, Is.EqualTo("DDD"));
            Assert.That(expectedCounter[3].Values, Is.EqualTo("DD"));
        }