Example #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, "हिंदी", "हिंदी");
        }
 //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, "हिंदी", "हिंद");
 }
Example #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, "हिंदी", "हिंद");
        }
 //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, "हिंदी", "हिंदी");
 }