コード例 #1
0
		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);
		}
コード例 #2
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));
		}