Lucene.Net.Analysis.TestMockAnalyzer.TestLUCENE_3042 C# (CSharp) 메소드

TestLUCENE_3042() 개인적인 메소드

private TestLUCENE_3042 ( ) : void
리턴 void
        public virtual void TestLUCENE_3042()
        {
            string testString = "t";

            Analyzer analyzer = new MockAnalyzer(Random());
            Exception priorException = null;
            TokenStream stream = analyzer.TokenStream("dummy", new StringReader(testString));
            try
            {
                stream.Reset();
                while (stream.IncrementToken())
                {
                    // consume
                }
                stream.End();
            }
            catch (Exception e)
            {
                priorException = e;
            }
            finally
            {
                IOUtils.CloseWhileHandlingException(priorException, stream);
            }

            AssertAnalyzesTo(analyzer, testString, new string[] { "t" });
        }