void TagCollectionShouldNotErrorWithoutTemplates() { var mockReader = TemplateReaderMockFactory.Get(new List <TemplateTag>()); ITemplateTagCollection bar = new TemplateTagCollection(mockReader.Object); // ASSERT: this just shouldn't throw an exception }
void TagCollectionshouldProcessWithOneResult() { var mockReader = TemplateReaderMockFactory.Get(SingleTemplate); ITemplateTagCollection bar = new TemplateTagCollection(mockReader.Object); var headerTemplate = bar.GetTagForType(TagType.Header1); Assert.NotNull(headerTemplate); }
void TagCollectionshouldProcessWithMultipleResults() { var mockReader = TemplateReaderMockFactory.Get(MultipleTemplate); ITemplateTagCollection bar = new TemplateTagCollection(mockReader.Object); var headerTemplate = bar.GetTagForType(TagType.Header1); var paragraphTemplate = bar.GetTagForType(TagType.Paragraph); Assert.NotNull(headerTemplate); Assert.NotNull(paragraphTemplate); }