Exemplo 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[] {"پیاوە"});
 }
Exemplo 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[] { "پیاو" });
        }
Exemplo 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[] { "پیاوە" });
        }
Exemplo 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[] {"پیاو"});
 }
Exemplo 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[] {"پیاو"});
 }
Exemplo 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[] {"ئەم", "پیاو"});
 }
Exemplo 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[] { "ئەم", "پیاو" });
        }
Exemplo 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[] { "پیاو" });
        }