public void TestReadCell() { string dataFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "file", "forread.xlsx"); NPOIOperator oper = new NPOIOperator(dataFilePath, true); var sheet = oper.GetSheet(0); var row = sheet.GetRow(2); var cell = row.GetCell(1); var cellValue = oper.ReadCell(cell, CellDataType.Text); Assert.AreEqual("李四", cellValue); }