.Net 2.0
MbUnit 2.3.96
Dual CPU computer
Except for the QuickGraph library, I've never looked at the MbUnit src.
ThreadedRepeat just doesn't feel like the right place to start.
-------------------- demo code ---------------
using System;
using MbUnit.Framework;
namespace MBUnitDemo
{
[TestFixture]
public class Tests
{
// when run as standalone I get 1 failure
// when run in the debugger I get 87 failures due to "Parameter
count mismatch" or "Destination array was not long enough. Check
destIndex and length, and the array's lower bounds."
// when the Sleep(1) call is uncommented I get 999 failures
[ThreadedRepeat(3)]
[CombinatorialTest]
public void CTTest([UsingFactories("GetSomeTestItems")]string
ti)
{
Assert.IsNotEmpty(ti);
///System.Threading.Thread.Sleep(1);
}
[Factory(typeof(string))]
public System.Collections.IEnumerable GetSomeTestItems()
{
for (int ii = 0; ii < 1000; ii++)
yield return ii.ToString();
}
}
class Program
{
static void Main(string[] args)
{
using (MbUnit.Core.AutoRunner runner = new
MbUnit.Core.AutoRunner())
{
runner.Load(); runner.Run();
runner.ReportToHtml();
}
}
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---