public void Test()
 {
     var baseFormQuery = new Mock<IWordBaseFormQuery>();
     baseFormQuery.Setup(b => b.GetLemmas("смеси")).Returns(new List<Lemma>
                                                                {
                                                                    new Lemma
                                                                        {
                                                                            Text = "смесь"
                                                                        },
                                                                    new Lemma
                                                                        {
                                                                            Text = "смесить"
                                                                        }
                                                                });
     var stemmer = new OpenCorporaRussianStemmer(baseFormQuery.Object);
     Assert.AreEqual(new[] { "смесь", "смесить" }.OrderBy(t => t), stemmer.Stem("смеси").OrderBy(t => t));
 }
 public OpenCorporaRussianStemFilter(TokenStream _in, IWordBaseFormQuery baseFormQuery)
     : base(_in)
 {
     stemmer = new OpenCorporaRussianStemmer(baseFormQuery);
     termAtt = AddAttribute<ITermAttribute>();
 }