public void TestGetCellFromIndexMethod() { CellClass cell = this.dataBase.GetCellFromIndex("B1"); Assert.AreEqual(0, cell.GetRowIndexValue()); Assert.AreEqual(1, cell.GetColumnIndexValue()); }
public void TestGetCellMethod() { // normal case.// CellClass cell = this.dataBase.GetCell(50, 50); Assert.AreEqual(49, cell.GetRowIndexValue()); Assert.AreEqual(49, cell.GetColumnIndexValue()); }
public void TestGetCellEdgeCaseMethod() { CellClass cell = this.dataBase.GetCell(102, 121); Assert.IsNull(cell); cell = this.dataBase.GetCell(0, 0); Assert.IsNull(cell); cell = this.dataBase.GetCell(100, 100); Assert.AreEqual(99, cell.GetRowIndexValue()); Assert.AreEqual(99, cell.GetColumnIndexValue()); }