Error!
Success!

Generating NUnit tests with PowerShell

0
kicks

Generating NUnit tests with PowerShell  (Unpublished)

The other day I needed to write NUnit unit tests to for a large number of method overloads. There were almost 100 methods that needed to be tested. The method signatures followed a well defined pattern. This didn’t look like much fun at first, but then I looked in my toolbox and I saw the smiling face of the PowerShell ISE shouting “Pick me! Pick me!”. About two hours later I had created a script that would parse the method signatures and generate NUnit test methods for each of the functions.


Kicked By:
Drop Kicked By: