Lucene.Net.Analysis.TestToken.TestToString C# (CSharp) Method

TestToString() private method

private TestToString ( ) : void
return void
		public virtual void  TestToString()
		{
			char[] b = new char[]{'a', 'l', 'o', 'h', 'a'};
			Token t = new Token("", 0, 5);
			t.SetTermBuffer(b, 0, 5);
			Assert.AreEqual("(aloha,0,5)", t.ToString());
			
			t.SetTermBuffer("hi there");
			Assert.AreEqual("(hi there,0,5)", t.ToString());
		}