This page last changed on Jul 12, 2005 by jflowers.
Summary

Shows how to make a MbUnit assembly execute his own tests.

The following snippet can be inserted in the Main function of a console assembly in order to make a assembly self-testable.

using System;
using MbUnit.Core;
...

static int Main(string[] args)
{
    using(AutoRunner runner = new AutoRunner())
    {
       runner.Load();
       runner.Run();
       runner.ReportToHtml();

       return runner.ExitCode;
    }
}
Document generated by Confluence on Jun 11, 2007 11:56