Exemple #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testHugeDoc() throws java.io.IOException
        public virtual void testHugeDoc()
        {
            StringBuilder sb = new StringBuilder();

            char[] whitespace = new char[4094];
            Arrays.fill(whitespace, ' ');
            sb.Append(whitespace);
            sb.Append("testing 1234");
            string            input     = sb.ToString();
            StandardTokenizer tokenizer = new StandardTokenizer(TEST_VERSION_CURRENT, new StringReader(input));

            BaseTokenStreamTestCase.assertTokenStreamContents(tokenizer, new string[] { "testing", "1234" });
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testConsume2() throws java.io.IOException
        public virtual void testConsume2()
        {
            BaseTokenStreamTestCase.assertTokenStreamContents(new EmptyTokenStream(), new string[0]);
        }