Reset() public method

public Reset ( ) : void
return void
コード例 #1
0
        public virtual void TestReset()
        {
            PositionFilter filter = new PositionFilter(new TestTokenStream(this, TEST_TOKEN));

            AssertTokenStreamContents(filter, TEST_TOKEN, TEST_TOKEN_POSITION_INCREMENTS);
            filter.Reset();
            // Make sure that the reset filter provides correct position increments
            AssertTokenStreamContents(filter, TEST_TOKEN, TEST_TOKEN_POSITION_INCREMENTS);
        }
コード例 #2
0
 public void TestReset()
 {
     PositionFilter filter = new PositionFilter(new TestTokenStream(TEST_TOKEN));
     AssertTokenStreamContents(filter, TEST_TOKEN, TEST_TOKEN_POSITION_INCREMENTS);
     filter.Reset();
     // Make sure that the reset filter provides correct position increments
     AssertTokenStreamContents(filter, TEST_TOKEN, TEST_TOKEN_POSITION_INCREMENTS);
 }
コード例 #3
0
        public virtual void TestReset()
        {
#pragma warning disable 612, 618
            PositionFilter filter = new PositionFilter(new TestTokenStream(this, TEST_TOKEN));
#pragma warning restore 612, 618
            AssertTokenStreamContents(filter, TEST_TOKEN, TEST_TOKEN_POSITION_INCREMENTS);
            filter.Reset();
            // Make sure that the reset filter provides correct position increments
            AssertTokenStreamContents(filter, TEST_TOKEN, TEST_TOKEN_POSITION_INCREMENTS);
        }