Re: BackgroundWorker problems
"Ian Wood" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
Could it be something to do with which thread you are on? As I recall the DoWork is on the background thread where as the other two are on the UI thread. Hope you solve the problem, Regards, Ian ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Lisle, Ron Sent: 12 November 2007 21:06 To: [email protected] Subject: [Nunit-users] BackgroundWorker problems I am trying to run NUnit tests against a form which includes the System.ComponentModel.BackgroundWorker control. This control exposes 3 events: DoWork, ProgressChanged, and RunWorkerCompleted. During my NUnit tests, I setup a handler for each, and set a flag to indicate that the event was called correctly. However, I appear to only get calls into the DoWork handler, not the other 2. This same code works correctly in my product. I've found via google searching a couple similar questions posted to forums, but no response to those. I've verified that I don't have try/catch statements along any of test paths or event handlers. Any ideas? www.sucden.co.uk Sucden (UK) Limited, 5 London Bridge Street, London SE1 9SG Telephone +44 20 7940 9400 Registered in England no. 1095841 VAT registration no. GB 446 9061 33 Authorised and Regulated by the Financial Services Authority (FSA) and entered in the FSA register under no. 114239 This email, including any files transmitted with it, is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you are not the intended recipient of this message, please notify [email protected] immediately and delete it from your computer system. We believe, but do not warrant, that this email and its attachments are virus-free, but you should check. Sucden (UK) Ltd may monitor traffic data of both business and personal emails. By replying to this email, you consent to Sucden?s monitoring the content of any emails you send to or receive from Sucden. Sucden is not liable for any opinions expressed by the sender where this is a non-business email. The contents of this e-mail do not constitute advice and should not be regarded as a recommendation to buy, sell or otherwise deal with any particular investment. This message has been scanned for viruses by BlackSpider MailControl ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users