public void HeaderColumnWidth_WhenSet_CallsSetNeedsLayout()
        {
            var needsLayoutCalled = false;
            var scrollViewMock = new FrozenHeadersScrollViewMock(new RectangleF(0, 0, 100, 100));
            scrollViewMock.SetNeedsLayoutDelegate = () => needsLayoutCalled = true;

            scrollViewMock.HeaderColumnWidth = 50;

            Assert.True(needsLayoutCalled);
        }
        public void ScrollingDelegate_WhenScrolled_ItCallsSetNeedsLayout()
        {
            var needsLayoutCalled = false;
            var scrollViewMock = new FrozenHeadersScrollViewMock(new RectangleF(0, 0, 100, 100));
            scrollViewMock.SetNeedsLayoutDelegate = () => needsLayoutCalled = true;

            scrollViewMock.HeaderRow.Delegate.Scrolled(scrollViewMock.HeaderRow);

            Assert.True(needsLayoutCalled);
        }