Пример #1
0
        public void GetSearchFrame_FileItem()
        {
            ISearchFrame searchFrame = _actionRegistry.GetSearchFrame(new IIndexable[] { new FileItem(Assembly.GetExecutingAssembly().Location) });

            var indexableSearchFrame = searchFrame.ShouldBeType <IndexableSearchFrame>();

            indexableSearchFrame.Indexables.Length.ShouldEqual(2);
            indexableSearchFrame.Indexables.OfType <ContainingFolderConverter>().Count().ShouldEqual(1);
        }
Пример #2
0
        public void GetSearchFrame_GoogleAction()
        {
            ISearchFrame searchFrame = _actionRegistry.GetSearchFrame(new IIndexable[] { new GoogleAction() });

            searchFrame.ShouldBeType <StringSearchFrame>();
        }