public void TestCtor1()
        {
            using (var proxy = new LogFileProxy(_scheduler, TimeSpan.Zero))
            {
                proxy.InnerLogFile.Should().BeNull();
                proxy.MaxCharactersPerLine.Should().Be(0);
                proxy.Exists.Should().BeFalse();
                proxy.FileSize.Should().Be(Size.Zero);
                proxy.StartTimestamp.Should().NotHaveValue();
                proxy.Count.Should().Be(0);

                new Action(() => proxy.GetLine(0)).ShouldThrow<IndexOutOfRangeException>();
                new Action(() => proxy.GetSection(new LogFileSection(0, 1))).ShouldThrow<IndexOutOfRangeException>();
            }
        }
 public void TestGetLine()
 {
     using (var proxy = new LogFileProxy(_scheduler, TimeSpan.Zero, _logFile.Object))
     {
         proxy.GetLine(42);
         _logFile.Verify(l => l.GetLine(It.Is<int>(x => x == 42)), Times.Once);
     }
 }