Ejemplo n.º 1
0
        public virtual void  TestToString()
        {
            char[]            b = new char[] { 'a', 'l', 'o', 'h', 'a' };
            TermAttributeImpl t = new TermAttributeImpl();

            t.SetTermBuffer(b, 0, 5);
            Assert.AreEqual("term=aloha", t.ToString());

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