public void VerifySourceIsIgnoredWhenEmitSourceIsFalse()
        {
            var tokenizer = CreateWhitespaceTokenizer("source");
            var filter = new ExpanderFilter(tokenizer, word => new[] {
                new Expansion("target", 1, "stem")
            }, emitSource: false);

            var result = EvaluateStream(filter);
            Assert.That(result.ToString(), Is.EqualTo("0:(stem:target)"));
        }
        public void VerifyTypeAttribute()
        {
            var tokenizer = CreateWhitespaceTokenizer("hello world");
            var filter = new ExpanderFilter(tokenizer, word => new[] {
                new Expansion(word + "1", 0, "stem"),
                new Expansion(word + "2", 0, "stem")
            });

            var result = EvaluateStream(filter);
            Assert.That(result.ToString(), Is.EqualTo("0:(word:hello|stem:hello1|stem:hello2) 1:(word:world|stem:world1|stem:world2)"));
        }