public void SupportedTemplatesShouldReturnAtLeastOneTemplate() { var provider = new PersonIndexContentProvider(); var templates = provider.SupportedTemplates; var supportedTemplates = templates as ID[] ?? templates.ToArray(); supportedTemplates.Should().NotBeNull(); supportedTemplates.Should().HaveCount(c => c > 0); }
public void SupportedTemplatesShouldOnlyReturnTemplatesInModule() { var provider = new PersonIndexContentProvider(); var templates = provider.SupportedTemplates; var supportedTemplates = templates as ID[] ?? templates.ToArray(); supportedTemplates.Should().NotBeNull(); var templatesInModule = GetTemplatesInModule(); supportedTemplates.Should().OnlyContain(t => templatesInModule.Contains(t)); }