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); }
public RecordVisitor1(BlankStats bs) { this.bs = bs; }