Generating NUnit tests with PowerShell(tellingmachine.com)
submitted by
Klaus(755) 3 years, 2 months ago
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.
|category: Unit Testing
|Views: 29
tags:
Testing another
Everyones tags:
Your Tags: