Exemplo n.º 1
0
        public void TestGetCellFromIndexMethod()
        {
            CellClass cell = this.dataBase.GetCellFromIndex("B1");

            Assert.AreEqual(0, cell.GetRowIndexValue());
            Assert.AreEqual(1, cell.GetColumnIndexValue());
        }
Exemplo n.º 2
0
        public void TestGetCellMethod()
        {
            // normal case.//
            CellClass cell = this.dataBase.GetCell(50, 50);

            Assert.AreEqual(49, cell.GetRowIndexValue());
            Assert.AreEqual(49, cell.GetColumnIndexValue());
        }
Exemplo n.º 3
0
        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());
        }