Example #1
0
    void TagCollectionShouldNotErrorWithoutTemplates()
    {
        var mockReader = TemplateReaderMockFactory.Get(new List <TemplateTag>());

        ITemplateTagCollection bar = new TemplateTagCollection(mockReader.Object);

        // ASSERT: this just shouldn't throw an exception
    }
Example #2
0
    void TagCollectionshouldProcessWithOneResult()
    {
        var mockReader = TemplateReaderMockFactory.Get(SingleTemplate);

        ITemplateTagCollection bar = new TemplateTagCollection(mockReader.Object);

        var headerTemplate = bar.GetTagForType(TagType.Header1);

        Assert.NotNull(headerTemplate);
    }
Example #3
0
    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);
    }