IncrementToken() public final method

public final IncrementToken ( ) : bool
return bool
 public void Test()
 {
     TokenStream ts = new EmptyTokenStream();
     Assert.False(ts.IncrementToken());
     ts.Reset();
     Assert.False(ts.IncrementToken());
 }
 public virtual void TestConsume()
 {
     TokenStream ts = new EmptyTokenStream();
     ts.Reset();
     assertFalse(ts.IncrementToken());
     ts.End();
     ts.Dispose();
     // try again with reuse:
     ts.Reset();
     assertFalse(ts.IncrementToken());
     ts.End();
     ts.Dispose();
 }
示例#3
0
        public virtual void TestConsume()
        {
            TokenStream ts = new EmptyTokenStream();

            ts.Reset();
            assertFalse(ts.IncrementToken());
            ts.End();
            ts.Dispose();
            // try again with reuse:
            ts.Reset();
            assertFalse(ts.IncrementToken());
            ts.End();
            ts.Dispose();
        }