Bamboo.Prevalence.Indexing.Tests.TokenAssertions.AssertTokens C# (CSharp) Method

AssertTokens() public static method

public static AssertTokens ( string text, ITokenFilter filter ) : void
text string
filter ITokenFilter
return void
		public static void AssertTokens(string text, ITokenFilter filter, params Token[] tokens)
		{
			AssertTokens(new StringTokenizer(text), filter, tokens);
		}

Same methods

TokenAssertions::AssertTokens ( ITokenizer tokenizer ) : void
TokenAssertions::AssertTokens ( ITokenizer tokenizer, ITokenFilter filter ) : void

Usage Example

 public void TestSimpleRegex()
 {
     TokenAssertions.AssertTokens("a token, 100 23 1g 144kg other token",
                                  _filter,
                                  new Token("a", 0),
                                  new Token("token", 2),
                                  new Token("other", 25),
                                  new Token("token", 31),
                                  null
                                  );
 }
All Usage Examples Of Bamboo.Prevalence.Indexing.Tests.TokenAssertions::AssertTokens