Пример #1
0
        private void confirmMulBlank(int expectedTotalBlankCells,
                                     int expectedNumberOfMulBlankRecords, int expectedNumberOfSingleBlankRecords)
        {
            // assumed row ranges set-up by caller:
            int           firstRow = 1;
            int           lastRow  = 2;
            BlankStats    bs       = new BlankStats();
            RecordVisitor rv       = new RecordVisitor1(bs);

            for (int rowIx = firstRow; rowIx <= lastRow; rowIx++)
            {
                if (valueRecord.RowHasCells(rowIx))
                {
                    valueRecord.VisitCellsForRow(rowIx, rv);
                }
            }
            Assert.AreEqual(expectedTotalBlankCells, bs.countBlankCells);
            Assert.AreEqual(expectedNumberOfMulBlankRecords, bs.countMulBlankRecords);
            Assert.AreEqual(expectedNumberOfSingleBlankRecords, bs.countSingleBlankRecords);
        }
Пример #2
0
        private void confirmMulBlank(int expectedTotalBlankCells,
                int expectedNumberOfMulBlankRecords, int expectedNumberOfSingleBlankRecords)
        {
            // assumed row ranges set-up by caller:
            int firstRow = 1;
            int lastRow = 2;
            BlankStats bs = new BlankStats();
            RecordVisitor rv = new RecordVisitor1(bs);

            for (int rowIx = firstRow; rowIx <= lastRow; rowIx++)
            {
                if (valueRecord.RowHasCells(rowIx))
                {
                    valueRecord.VisitCellsForRow(rowIx, rv);
                }
            }
            Assert.AreEqual(expectedTotalBlankCells, bs.countBlankCells);
            Assert.AreEqual(expectedNumberOfMulBlankRecords, bs.countMulBlankRecords);
            Assert.AreEqual(expectedNumberOfSingleBlankRecords, bs.countSingleBlankRecords);
        }
Пример #3
0
 public RecordVisitor1(BlankStats bs)
 {
     this.bs = bs;
 }
Пример #4
0
 public RecordVisitor1(BlankStats bs)
 {
     this.bs = bs;
 }