Testing and Debugging MEF, Tips – Part 1

Friday, July 9, 2010

Testing and Debugging MEF, Tips - Part 1 this is the first post of a series that will offer some tips about testing and debugging your MEF-able component and application.   in this post we will focus about exporting Mock objects.   the code sample for this post can be download from here.   Prerequisite if you are not familiar with Mocks you better read more about this subject before proceeding with this post (in short Mocks are fake object which is use for separate...
no comments

Chess – Deterministic parallel testing

Sunday, March 28, 2010

Chess - Deterministic parallel testing   modern software development is drifting in the direction of Parallel Computing. even those the tools and libraries for Parallel Computing is continuously improving,  we still left with the old problem of how to test the non deterministic execution nature of Parallel Computing programming.   this post will focus on the Chess testing framework, which is trying to solve the non deterministic testing issue.   you can download the chess framework from here. the code for this post is available...
no comments

Pex – test input generator

Saturday, March 27, 2010

Pex – test input generator   this post will focus on the Pex tool. Pex is an automatically test input generates. it try to get both high code coverage and potential failures.   you can download Pex from here.   So why do we need another testing tool? Pex does not intend to replace any of the existing testing frameworks, in matter of fact, its generated test can be saved as testing code using any of the leading testing frameworks.   When to...

Moles – isolate your test unit

Thursday, March 25, 2010

Moles – isolate your test unit   this post will focus on the Moles - Isolation framework for .NET. you can download the Moles framework from here, or even better download the Pex testing framework (that includes Moles) from here. (I will survey the Pex framework in one of the upcoming posts).   the code sample for this post is available here.   How do you test the correctness of the following method? Code Snippet public class MyComponent {     private DateTime...