I sometimes get the following error message when I use the
DurationAttribute with the ThreadedRepeatAttribute on the same test :

TestCase 'ObjectUpdateTest.MultiThreadTest' failed: Runner throwed.
        System.Exception
        Message: Runner throwed.
        Source: MbUnit.Framework
        StackTrace:
        at MbUnit.Core.Invokers.ThreadedRepeatRunInvoker.Execute(Object o,
IList args)
        at MbUnit.Core.RunPipeStarter.Run(Object fixture, Boolean IsExplicit)
        Inner Exception
        System.InvalidOperationException
        Message: Stop called before start
        Source: MbUnit.Framework
        StackTrace:
        at MbUnit.Core.Monitoring.TimeMonitor.Stop()
        at MbUnit.Core.Invokers.DurationRunInvoker.Execute(Object o, IList
args)
        at
MbUnit.Core.Invokers.ThreadedRepeatRunInvoker.ThreadedRunInvokerStarter.Run()


It happens all the time if I put the DurationAttribute after the
ThreadedRepeatAttribute.  For example :

        [Test]
        [ThreadedRepeat(numberOfThreads)]
        [Duration(10)]
        public void MultiThreadTest()
        {
                ...
        }

But it happens intermittently if I put the DurationAttribute before
the ThreadedRepeatAttribute :

        [Test]
        [Duration(10)]
        [ThreadedRepeat(numberOfThreads)]
        public void MultiThreadTest()
        {
                ...
        }


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to