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(); }