The MbUnit.Core.AutoRun class is a new lightweight class that explores and executes the tests contained in the entry assembly. This class can be used to create executable test assemblies that are self-contained.
MbUnit.Core.AutoRun
public class AutoRunTest { public static void Main(string[] args) { using(MbUnit.Core.AutoRunner auto = new MbUnit.Core.AutoRunner()) { auto.Run(); auto.ReportToHtml(); } } }
The AutoRunner class also supports filtering and will be available in 2.16.1.
Page rendered at Thursday, December 04, 2008 8:09:55 AM UTC
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.