Click here to Skip to main content
15,906,816 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: saving path problem, please help. Pin
Farraj1-Apr-10 5:17
Farraj1-Apr-10 5:17 
GeneralRe: saving path problem, please help. Pin
Anubhava Dimri1-Apr-10 18:14
Anubhava Dimri1-Apr-10 18:14 
GeneralRe: saving path problem, please help. Pin
Farraj2-Apr-10 1:47
Farraj2-Apr-10 1:47 
GeneralRe: saving path problem, please help. Pin
Anubhava Dimri2-Apr-10 2:41
Anubhava Dimri2-Apr-10 2:41 
QuestionHelp Please : How to send VB data to C++ dl Pin
Amber24526-Mar-10 19:34
Amber24526-Mar-10 19:34 
AnswerRe: Help Please : How to send VB data to C++ dl Pin
T210228-Mar-10 21:26
T210228-Mar-10 21:26 
AnswerRe: Help Please : How to send VB data to C++ dl Pin
Richard MacCutchan28-Mar-10 23:07
mveRichard MacCutchan28-Mar-10 23:07 
QuestionIssue with threading behaviour ... I think Pin
Jack Vanderhorst26-Mar-10 4:54
Jack Vanderhorst26-Mar-10 4:54 
I have a class, call it Inventory, it does some basic database tasks using a BackgroundWorker like SaveChanges(), LoadFirstItem() etc. In my RunWorkerCompleted method PropertyChanged events are fired to notify the UI to update itself.

This works swimmingly in my WinForms app and the BackGroundWorker is clearly doing it's thing successfully, but I'm having trouble writing [TestMethod()]'s for the class in a test project. In a test project, it seems like after calling RunWorkerAsync the DoWork method doesn't get called, and as a result neither does RunWorkerCompleted, and my tests always fail.

Breakpoints in DoWork or RunWorkerCompleted are not hit. I assumed this was because my test method was not waiting for the background thread to finish so I've tried sleeping the main thread to see if the BackgroundWorker can catch up, I've tried the Application.DoEvents() thing, but I'm a bit of a rookie in the threading department... and the authoring of Unit Tests department for that matter! uh oh Smile | :)

Any pointers on how to please my BackgroundWorker in a [TestMethod()]?
AnswerRe: Issue with threading behaviour ... I think Pin
Luc Pattyn26-Mar-10 5:30
sitebuilderLuc Pattyn26-Mar-10 5:30 
GeneralRe: Issue with threading behaviour ... I think Pin
Jack Vanderhorst27-Mar-10 16:16
Jack Vanderhorst27-Mar-10 16:16 
AnswerRe: Issue with threading behaviour ... I think Pin
Luc Pattyn27-Mar-10 16:24
sitebuilderLuc Pattyn27-Mar-10 16:24 
QuestionO/R -Mapping with .netTiers and Audittrail with Entity Framework?? Pin
andreas.schaerer26-Mar-10 4:23
andreas.schaerer26-Mar-10 4:23 
QuestionHow to read *.dmp file with visual C# .net to search strings in it Pin
harji1725-Mar-10 13:45
harji1725-Mar-10 13:45 
AnswerRepost Pin
Not Active25-Mar-10 14:35
mentorNot Active25-Mar-10 14:35 
QuestionRichTextBox syntax color - find all lines or line by line Pin
norrisMiou25-Mar-10 3:19
norrisMiou25-Mar-10 3:19 
AnswerRe: RichTextBox syntax color - find all lines or line by line Pin
Luc Pattyn25-Mar-10 4:37
sitebuilderLuc Pattyn25-Mar-10 4:37 
NewsGoldman Sachs Vice Presidents Speak Java at Great Indian Developer Summit 2010 Pin
Rajesh557525-Mar-10 1:21
Rajesh557525-Mar-10 1:21 
QuestionMessage Removed Pin
24-Mar-10 19:52
sindhumahe24-Mar-10 19:52 
AnswerRe: building a object file lib Pin
Richard MacCutchan24-Mar-10 22:42
mveRichard MacCutchan24-Mar-10 22:42 
GeneralRe: building a object file lib Pin
sindhumahe24-Mar-10 22:52
sindhumahe24-Mar-10 22:52 
GeneralRe: building a object file lib [modified] Pin
Richard MacCutchan25-Mar-10 2:08
mveRichard MacCutchan25-Mar-10 2:08 
GeneralRe: building a object file lib Pin
Luc Pattyn25-Mar-10 3:04
sitebuilderLuc Pattyn25-Mar-10 3:04 
GeneralRe: building a object file lib Pin
Richard MacCutchan25-Mar-10 4:09
mveRichard MacCutchan25-Mar-10 4:09 
GeneralRe: building a object file lib Pin
Luc Pattyn25-Mar-10 4:24
sitebuilderLuc Pattyn25-Mar-10 4:24 
QuestionDiffrence between tier and layer architecture ? Pin
Mahendran.chandramohan24-Mar-10 1:47
Mahendran.chandramohan24-Mar-10 1:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.