BlogSharp.Core.Impl.Tests.Services.Template.TemplateSourceTests.Can_get_template_from_from_content_and_sets_correct_template_engine C# (CSharp) Method

Can_get_template_from_from_content_and_sets_correct_template_engine() private method

        public void Can_get_template_from_from_content_and_sets_correct_template_engine()
        {
            string content = "#templateengine(spark)\nyet another team";
            ITemplate template = templateSource.GetTemplateFromString(content);
            templateEngineRegistry.AssertWasCalled(x => x.GetTemplateEngine("spark"));
            Assert.That(template.GetContent(), Is.EqualTo("yet another team"));
        }