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