Esempio n. 1
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testWithStemExclusionSet() throws java.io.IOException
 public virtual void testWithStemExclusionSet()
 {
     CharArraySet set = new CharArraySet(TEST_VERSION_CURRENT, 1, true);
     set.add("پیاوە");
     Analyzer a = new SoraniAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, set);
     assertAnalyzesTo(a, "پیاوە", new string[] {"پیاوە"});
 }
Esempio n. 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testReusableTokenStream() throws java.io.IOException
        public virtual void testReusableTokenStream()
        {
            Analyzer a = new SoraniAnalyzer(TEST_VERSION_CURRENT);

            assertAnalyzesTo(a, "پیاوە", new string[] { "پیاو" });
            assertAnalyzesTo(a, "پیاو", new string[] { "پیاو" });
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testWithStemExclusionSet() throws java.io.IOException
        public virtual void testWithStemExclusionSet()
        {
            CharArraySet set = new CharArraySet(TEST_VERSION_CURRENT, 1, true);

            set.add("پیاوە");
            Analyzer a = new SoraniAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, set);

            assertAnalyzesTo(a, "پیاوە", new string[] { "پیاوە" });
        }
Esempio n. 4
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testStopwords() throws java.io.IOException
 public virtual void testStopwords()
 {
     Analyzer a = new SoraniAnalyzer(TEST_VERSION_CURRENT);
     assertAnalyzesTo(a, "ئەم پیاوە", new string[] {"پیاو"});
 }
Esempio n. 5
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testReusableTokenStream() throws java.io.IOException
 public virtual void testReusableTokenStream()
 {
     Analyzer a = new SoraniAnalyzer(TEST_VERSION_CURRENT);
     assertAnalyzesTo(a, "پیاوە", new string[] {"پیاو"});
     assertAnalyzesTo(a, "پیاو", new string[] {"پیاو"});
 }
Esempio n. 6
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testCustomStopwords() throws java.io.IOException
 public virtual void testCustomStopwords()
 {
     Analyzer a = new SoraniAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET);
     assertAnalyzesTo(a, "ئەم پیاوە", new string[] {"ئەم", "پیاو"});
 }
Esempio n. 7
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testCustomStopwords() throws java.io.IOException
        public virtual void testCustomStopwords()
        {
            Analyzer a = new SoraniAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET);

            assertAnalyzesTo(a, "ئەم پیاوە", new string[] { "ئەم", "پیاو" });
        }
Esempio n. 8
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testStopwords() throws java.io.IOException
        public virtual void testStopwords()
        {
            Analyzer a = new SoraniAnalyzer(TEST_VERSION_CURRENT);

            assertAnalyzesTo(a, "ئەم پیاوە", new string[] { "پیاو" });
        }