Пример #1
0
        public void output_contains_the_items_returned_by_the_shared_path_builder()
        {
            var paths = new[] { getPath("Shared"), getPath("Views", "Shared") };

            _builder
            .Stub(x => x.BuildBy(null, null, false)).IgnoreArguments()
            .Return(paths);

            ClassUnderTest.SharedPathsOf(_item, _items)
            .Each(x => paths.ShouldContain(x));
        }
Пример #2
0
        protected override void beforeEach()
        {
            _root = AppDomain.CurrentDomain.BaseDirectory;

            _item        = new Template(getPath("Actions", "Home", "home.spark"), _root, FubuSparkConstants.HostOrigin);
            _packageItem = new Template(getPath("Packages", "Package1", "Actions", "Home", "home.spark"), _root, "Package1");

            _items = new TemplateRegistry {
                _item, _packageItem
            };

            _builder = MockFor <ISharedPathBuilder>();
            _builder.Stub(x => x.SharedFolderNames).Return(new[] { Constants.Shared });
        }