public void TryReadFWS_AtBeginningOfString_ShouldReadFWS()
        {
            int index = 3;

            Assert.True(WhitespaceReader.TryReadFwsReverse(WhitespaceAtBeginning, index, out index, throwExceptionIfFail: true));
            Assert.Equal(-1, index);
        }
        public void TryReadFWS_WithOnlyWhiteSpace_ShouldReadAll()
        {
            int index = WhitespaceOnly.Length - 1;

            Assert.True(WhitespaceReader.TryReadFwsReverse(WhitespaceOnly, index, out index, throwExceptionIfFail: true));

            Assert.Equal(-1, index);
        }
        public void TryReadFWS_WithNoWhiteSpace_ShouldDoNothing()
        {
            int index = NoWhitespace.Length - 1;

            Assert.True(WhitespaceReader.TryReadFwsReverse(NoWhitespace, index, out index, throwExceptionIfFail: true));
            Assert.Equal(NoWhitespace.Length - 1, index);

            index = WhitespaceInMiddle.Length - 1;

            Assert.True(WhitespaceReader.TryReadFwsReverse(WhitespaceInMiddle, index, out index, throwExceptionIfFail: true));
            Assert.Equal(WhitespaceInMiddle.Length - 1, index);
        }