Thursday, April 30, 2009

Running Rhino Mock Under FxCop

I wanted to try out Rhino Mock, and I downloaded it and tried it out and it was better then NUnit Mock, I was playing around it a little bit and well, ran fxCop on it,

And gosh, I found 640 defects.

Well, this is not a critic, but it just brings out the fact the amount of static code analysis we do on our code.

I for real, run fxCop on the code I develop before checking it in to the repository, although this is not possible some times, most of the time I spent some time dedicated for this task.It is important to know the standard of the code you develop and running static code analyzer or review through a peer make sure that your code is healthy.

No comments:

Post a Comment