Lucene.Net.Analysis.VocabularyAssert.AssertVocabulary C# (CSharp) Method

AssertVocabulary() public static method

Run a vocabulary test against one file: tab separated.
public static AssertVocabulary ( Analyzer a, Stream vocOut ) : void
a Analyzer
vocOut System.IO.Stream
return void
        public static void AssertVocabulary(Analyzer a, Stream vocOut)
        {
            TextReader vocReader = (TextReader)(new StreamReader(vocOut, IOUtils.CHARSET_UTF_8));
            string inputLine = null;
            while ((inputLine = vocReader.ReadLine()) != null)
            {
                if (inputLine.StartsWith("#") || inputLine.Trim().Length == 0)
                {
                    continue; // comment
                }
                string[] words = inputLine.Split('\t');
                BaseTokenStreamTestCase.CheckOneTerm(a, words[0], words[1]);
            }
        }

Same methods

VocabularyAssert::AssertVocabulary ( Analyzer a, Stream voc, Stream @out ) : void
VocabularyAssert::AssertVocabulary ( Analyzer a, Stream zipFile, string vocOut ) : void
VocabularyAssert::AssertVocabulary ( Analyzer a, Stream zipFile, string voc, string @out ) : void
VocabularyAssert