public void TestTopRow() { HSSFWorkbook wb = OpenSample("SimpleWithPageBreaks.xls"); NPOI.SS.UserModel.Sheet sheet = wb.GetSheetAt(0); Assert.IsNotNull(sheet); short toprow = (short)100; short leftcol = (short)50; sheet.ShowInPane(toprow, leftcol); Assert.AreEqual(toprow, sheet.TopRow, "NPOI.SS.UserModel.Sheet.GetTopRow()"); Assert.AreEqual(leftcol, sheet.LeftCol, "NPOI.SS.UserModel.Sheet.GetLeftCol()"); }