a Decorator which implements OccurrenceCount to return whatever we want (0 by default).
Inheritance: SIL.FieldWorks.FDO.Application.DomainDataByFlidDecoratorBase
		public void TryItOut()
		{
			var filter = new WordsUsedOnlyElsewhereFilter();
			filter.Init(Cache, null);
			var sda = new FakeDecorator((ISilDataAccessManaged)Cache.DomainDataByFlid);
			filter.DataAccess = sda;
			UndoableUnitOfWorkHelper.Do("undo", "redo", m_actionHandler,
				() =>
					{
						var wfTry = MakeWordform("try");
						ISegment seg1;
						var text1 = MakeText("try it out", out seg1);
						seg1.AnalysesRS.Add(wfTry);
						Assert.That(wfTry.FullConcordanceCount, Is.EqualTo(1));
						ManyOnePathSortItem itemTry = new ManyOnePathSortItem(wfTry);
						// Here the global count is non-zero but the corpus count is zero.
						Assert.That(filter.Accept(itemTry), Is.False, "should not accept an item which occurs elsewhere but not in corpus");
						sda.HvoToOccurrenceCount[wfTry.Hvo] = 1;
						Assert.That(filter.Accept(itemTry), Is.True, "should accept an item in an included text");
						sda.HvoToOccurrenceCount[wfTry.Hvo] = 5;
						Assert.That(filter.Accept(itemTry), Is.True, "should accept an item in an included text, even if there are other occurrences");
						var wfNowhere = MakeWordform("nowhere");
						ManyOnePathSortItem itemNowhere = new ManyOnePathSortItem(wfNowhere);
						Assert.That(filter.Accept(itemNowhere), Is.True,"should accept an item that occurs nowhere at all.");
					});
		}
        public void TryItOut()
        {
            var filter = new WordsUsedOnlyElsewhereFilter();

            filter.Init(Cache, null);
            var sda = new FakeDecorator((ISilDataAccessManaged)Cache.DomainDataByFlid);

            filter.DataAccess = sda;
            UndoableUnitOfWorkHelper.Do("undo", "redo", m_actionHandler,
                                        () =>
            {
                var wfTry = MakeWordform("try");
                ISegment seg1;
                var text1 = MakeText("try it out", out seg1);
                seg1.AnalysesRS.Add(wfTry);
                Assert.That(wfTry.FullConcordanceCount, Is.EqualTo(1));
                ManyOnePathSortItem itemTry = new ManyOnePathSortItem(wfTry);
                // Here the global count is non-zero but the corpus count is zero.
                Assert.That(filter.Accept(itemTry), Is.False, "should not accept an item which occurs elsewhere but not in corpus");
                sda.HvoToOccurrenceCount[wfTry.Hvo] = 1;
                Assert.That(filter.Accept(itemTry), Is.True, "should accept an item in an included text");
                sda.HvoToOccurrenceCount[wfTry.Hvo] = 5;
                Assert.That(filter.Accept(itemTry), Is.True, "should accept an item in an included text, even if there are other occurrences");
                var wfNowhere = MakeWordform("nowhere");
                ManyOnePathSortItem itemNowhere = new ManyOnePathSortItem(wfNowhere);
                Assert.That(filter.Accept(itemNowhere), Is.True, "should accept an item that occurs nowhere at all.");
            });
        }