public void TestClickAfterScroll()
        {
            MockCellEntry[] cells =
            {
                new MockCellEntry(typeof(TableViewCellMock1), 10),
                new MockCellEntry(typeof(TableViewCellMock2), 15),
                new MockCellEntry(typeof(TableViewCellMock3), 10),
                new MockCellEntry(typeof(TableViewCellMock1), 15),
                new MockCellEntry(typeof(TableViewCellMock2), 10),
                new MockCellEntry(typeof(TableViewCellMock3), 15),
            };

            TableViewAdapter adapter = new TestCellsHeightTableAdapter(cells);

            TableViewClickMock table = new TableViewClickMock(320, 10);

            table.DataSource = adapter;
            table.Delegate   = adapter;
            table.ReloadData();

            table.Click(10, 5);
            Assert.AreEqual(0, table.ClickedCellIndex);

            table.Scroll(10);
            table.Click(10, 5);
            Assert.AreEqual(1, table.ClickedCellIndex);

            table.Scroll(15);
            table.Click(10, 5);
            Assert.AreEqual(2, table.ClickedCellIndex);

            table.Scroll(10);
            table.Click(10, 5);
            Assert.AreEqual(3, table.ClickedCellIndex);

            table.Scroll(15);
            table.Click(10, 5);
            Assert.AreEqual(4, table.ClickedCellIndex);

            table.Scroll(10);
            table.Click(10, 5);
            Assert.AreEqual(5, table.ClickedCellIndex);
        }
        public void TestClickAfterScroll()
        {
            MockCellEntry[] cells =
            {
                new MockCellEntry(typeof(TableViewCellMock1), 10),
                new MockCellEntry(typeof(TableViewCellMock2), 15),
                new MockCellEntry(typeof(TableViewCellMock3), 10),
                new MockCellEntry(typeof(TableViewCellMock1), 15),
                new MockCellEntry(typeof(TableViewCellMock2), 10),
                new MockCellEntry(typeof(TableViewCellMock3), 15),
            };

            TableViewAdapter adapter = new TestCellsHeightTableAdapter(cells);

            TableViewClickMock table = new TableViewClickMock(320, 10);
            table.DataSource = adapter;
            table.Delegate = adapter;
            table.ReloadData();

            table.Click(10, 5);
            Assert.AreEqual(0, table.ClickedCellIndex);

            table.Scroll(10);
            table.Click(10, 5);
            Assert.AreEqual(1, table.ClickedCellIndex);

            table.Scroll(15);
            table.Click(10, 5);
            Assert.AreEqual(2, table.ClickedCellIndex);

            table.Scroll(10);
            table.Click(10, 5);
            Assert.AreEqual(3, table.ClickedCellIndex);

            table.Scroll(15);
            table.Click(10, 5);
            Assert.AreEqual(4, table.ClickedCellIndex);

            table.Scroll(10);
            table.Click(10, 5);
            Assert.AreEqual(5, table.ClickedCellIndex);
        }