Unit testing custom macros
Eric Dugre
—
—
Knowledge Base Article
Unit testing your code is a great way to ensure that everything’s working properly under different scenarios. Creating custom macros is a popular way to extend Kentico’s capabilities, but as this code is placed within the content of your site and only evaluated when it’s rendered, how can you test the code?