Example #1
0
        public void TestOnSizeChanged1()
        {
            var logFile = new Mock <ILogSource>();

            logFile.Setup(x => x.GetProperty(Properties.LogEntryCount)).Returns(0);
            _control.LogSource   = logFile.Object;
            _control.CurrentLine = 1;

            new Action(() => _control.OnSizeChanged()).Should().NotThrow();

            _control.CurrentlyVisibleSection.Should().Equal(new LogSourceSection(0, 0));
        }