Geeks With Blogs
The Life and Times of a Dev Yes, we're really that weird Threading
Unit Testing Multi-threaded code
I spent the day today writing unit tests for code I wrote yesterday. No, I’m not a big fan of TDD. I am, however, a big fan of high (as close to 100% as practical) code coverage. The device I’m working on is very multi-threaded. As a matter of fact, a key principle is DON’T BLOCK! Because of this, there are quite a few Task’s, lots of awaiting, and several timers that poll on a regular basis. This makes for code that can be tricky to unit test. After all, if you’re not blocking, you’re on a different ......

Posted On Thursday, November 27, 2014 12:29 AM

Copyright © Robert May | Powered by: GeeksWithBlogs.net