public void FindEndOfLine_WithInvalidStart_ShouldThrow(int length)
        {
            var subject = new BinaryString(new byte[length]);

            subject.Invoking(s => s.FindEndOfLine(length))
            .Should().ThrowExactly <ArgumentOutOfRangeException>();
            subject.Invoking(s => s.FindEndOfLine(-1))
            .Should().ThrowExactly <ArgumentOutOfRangeException>();
        }
        public void IsEndOfLine_WithInvalidPosition_ShouldThrow(int length, int position)
        {
            var data    = new byte[length];
            var subject = new BinaryString(data);

            subject.Invoking(s => s.IsEndOfLine(position))
            .Should().ThrowExactly <ArgumentOutOfRangeException>()
            .And.ParamName.Should().Be("position");
        }