Beispiel #1
0
        public void Tokenize(string content, BraceTokenType[] expected)
        {
            var tokenizer = new BraceTokenizer();
            var actual    = tokenizer.Tokenize(content);

            actual.Should().HaveSameCount(expected);
            actual.Select(t => t.TokenType).Should().ContainInOrder(expected);
        }
Beispiel #2
0
        protected override IReadOnlyTextRangeCollection <BraceToken> GetTokens(int start, int length)
        {
            var tokenizer = new BraceTokenizer();

            return(tokenizer.Tokenize(TextBuffer.CurrentSnapshot.GetText()));
        }