Esempio n. 1
0
        public void TestCalculateVisibleSection1()
        {
            var logFile = new Mock <ILogSource>();

            logFile.Setup(x => x.GetProperty(Properties.LogEntryCount)).Returns(1);

            _control.LogSource   = logFile.Object;
            _control.CurrentLine = 600;

            var section = _control.CalculateVisibleSection();

            section.Should().Equal(new LogSourceSection(0, 1), "because the control should clamp the visible section until something better becomes available");
        }