Example #1
0
        public void DstMatrixIsIdenticalToSrcMatrixTest()
        {
            var dst = new BitMatrixFake(_matrix);

            CollectionAssert.AreEqual(
                _matrix.Traverse(),
                dst.Traverse()
                );
        }
Example #2
0
        public void SetUp()
        {
            _matrix = new BitMatrixFake(RowSize, ColumnSize);

            for (var row = 0; row < _matrix.RowCount; ++row)                 //10101
            {                                                                //01010
                for (var column = 0; column < _matrix.ColumnCount; ++column) //10101
                {                                                            //01010
                    _matrix[row, column] = (row + column) % 2 == 0;          //10101
                }
            }
        }