public void CanEnsurePositionVisibilityByPanningWithScrollAhead() { var view = new CharacterView(new Options { ScrollAhead = true }); view.IsInView(300, 400).Should().BeFalse(); view.OffsetX.Should().Be(0); view.OffsetY.Should().Be(0); view.EnsurePositionIsVisible(300, 400); view.IsInView(300, 400).Should().BeTrue(); view.OffsetX.Should().Be(221); view.OffsetY.Should().Be(361); }