Browsing All posts tagged under »PowerShell«

How to do NUnit assertions with PowerShell

September 24, 2012

0

This blog post is the first in a series of posts which will cover my new PowerShell unit testing framework PsTest. The reason for covering NUnit assertions without any specific context will be made more clear in the later posts of the series. At the moment you may have a look at how NUnit assertions […]

How to render a Razor template with PowerShell

April 29, 2012

2

The Microsoft ASP.NET Razor view engine has an API that can be leveraged outside of the normal ASP.NET MVC context. In this post we are going to use PowerShell to render a Razor template. Lets get started. First of all we have to load the System.Web.Razor.dll assembly: Add-Type -Path path\to\System.Web.Razor.dll There are three classes in the Razor […]