public void Should_return_true_for_wizard_extension_content_type()
        {
            var installer = new ContentInstaller();
            IContentItem[] content = new[] {new ContentItemStub {FileContentType = "WizardExtension"}};
            var site = MockRepository.GenerateStub<IContentInstallerSite>();

            bool result = installer.AddContentItem(content, site);

            result.ShouldBeTrue();
        }
        public void Should_return_false_for_unknown_content_type()
        {
            var installer = new ContentInstaller();
            IContentItem[] content = new[] {new ContentItemStub {FileContentType = "unknown"}};
            var site = MockRepository.GenerateStub<IContentInstallerSite>();

            bool result = installer.AddContentItem(content, site);

            result.ShouldBeFalse();
        }
Ejemplo n.º 3
0
        public void Should_return_true_for_wizard_extension_content_type()
        {
            var installer = new ContentInstaller();

            IContentItem[] content = new[] { new ContentItemStub {
                                                 FileContentType = "WizardExtension"
                                             } };
            var site = MockRepository.GenerateStub <IContentInstallerSite>();

            bool result = installer.AddContentItem(content, site);

            result.ShouldBeTrue();
        }
Ejemplo n.º 4
0
        public void Should_return_false_for_unknown_content_type()
        {
            var installer = new ContentInstaller();

            IContentItem[] content = new[] { new ContentItemStub {
                                                 FileContentType = "unknown"
                                             } };
            var site = MockRepository.GenerateStub <IContentInstallerSite>();

            bool result = installer.AddContentItem(content, site);

            result.ShouldBeFalse();
        }