コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testExclusionSet() throws Exception
        public virtual void testExclusionSet()
        {
            CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, asSet("हिंदी"), false);
            Analyzer     a            = new HindiAnalyzer(TEST_VERSION_CURRENT, HindiAnalyzer.DefaultStopSet, exclusionSet);

            checkOneTerm(a, "हिंदी", "हिंदी");
        }
コード例 #2
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testBasics() throws Exception
 public virtual void testBasics()
 {
     Analyzer a = new HindiAnalyzer(TEST_VERSION_CURRENT);
     // two ways to write 'hindi' itself.
     checkOneTerm(a, "हिन्दी", "हिंद");
     checkOneTerm(a, "हिंदी", "हिंद");
 }
コード例 #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testBasics() throws Exception
        public virtual void testBasics()
        {
            Analyzer a = new HindiAnalyzer(TEST_VERSION_CURRENT);

            // two ways to write 'hindi' itself.
            checkOneTerm(a, "हिन्दी", "हिंद");
            checkOneTerm(a, "हिंदी", "हिंद");
        }
コード例 #4
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testExclusionSet() throws Exception
 public virtual void testExclusionSet()
 {
     CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, asSet("हिंदी"), false);
     Analyzer a = new HindiAnalyzer(TEST_VERSION_CURRENT, HindiAnalyzer.DefaultStopSet, exclusionSet);
     checkOneTerm(a, "हिंदी", "हिंदी");
 }