public void TryReadCFWS_WithOnlyComment_ShouldReadAll()
        {
            int index = OneComment.Length - 1;

            Assert.True(WhitespaceReader.TryReadCfwsReverse(OneComment, index, out index, throwExceptionIfFail: true));
            Assert.Equal(-1, index);
        }
        public void TryReadCFWS_WithNoComment_ShouldDoNothing()
        {
            int index = NoComments.Length - 1;

            Assert.True(WhitespaceReader.TryReadCfwsReverse(NoComments, index, out index, throwExceptionIfFail: true));
            Assert.Equal(index, NoComments.Length - 1);
        }
        public void TryReadCFWS_WithCharsBeforeComment_ShouldWorkCorrectly()
        {
            int index = OneCommentWithAdditionalCharsBefore.Length - 1;

            Assert.True(WhitespaceReader.TryReadCfwsReverse(OneCommentWithAdditionalCharsBefore, index, out index, throwExceptionIfFail: true));
            Assert.Equal(3, index);
        }
        public void TryReadCFWS_WithSingleSpace_ShouldReadTheSpace()
        {
            int index = SingleSpace.Length - 1;

            Assert.True(WhitespaceReader.TryReadCfwsReverse(SingleSpace, index, out index, throwExceptionIfFail: true));
            Assert.Equal(-1, index);
        }
        public void TryReadCFWS_WithNestedComments_ShouldWorkCorrectly()
        {
            int index = NestedComments.Length - 1;

            Assert.True(WhitespaceReader.TryReadCfwsReverse(NestedComments, index, out index, throwExceptionIfFail: true));
            Assert.Equal(-1, index);
        }