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); }
protected override IReadOnlyTextRangeCollection <BraceToken> GetTokens(int start, int length) { var tokenizer = new BraceTokenizer(); return(tokenizer.Tokenize(TextBuffer.CurrentSnapshot.GetText())); }