Пример #1
0
        public void TestGetCellFromIndexMethod()
        {
            CellClass cell = this.dataBase.GetCellFromIndex("B1");

            Assert.AreEqual(0, cell.GetRowIndexValue());
            Assert.AreEqual(1, cell.GetColumnIndexValue());
        }
Пример #2
0
        public void TestGetCellMethod()
        {
            // normal case.//
            CellClass cell = this.dataBase.GetCell(50, 50);

            Assert.AreEqual(49, cell.GetRowIndexValue());
            Assert.AreEqual(49, cell.GetColumnIndexValue());
        }
Пример #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());
        }