-
Test first Test during Test after Answer, Test. No matter what style of testing you believe in, they all share one common trait. They all test your code. So, what is the point of this post you may ask? Simple. To me, it does not matter how your tests come to be, but having tests is what is important...
-
Recently I was chatting with a friend of mine and he asked if a single developer could be successful following TDD on a team that does not follow TDD. My simple answer was YES, they can. But there are a few things you must consider..... How can they make a difference I am a firm believer that someone...
-
Over on the Alt.Net mailing list ( here ) the topic of where to put your unit tests was the hot topic a few days ago. This is a topic that I have debated with various people over the past few years. With all the debates I have had, it is clear to me that there really is no right or wrong way do to this...
-
I finally got around to upgrading to the most recent version of NUnit recently (Yea I know, bout time) and found out that there is a new way of doing assertions. The new model is referred to as the 'constraint' model and follows a more fluent style interface. Below are some examples...
-
Recently I was asked about backing in unit tests into an existing project. In particular I was asked A) was possible and B) is it worth it. In short my answers to both these are Yes and Yes. However, backing in unit tests is not without its challenges. I thought today I would go express my experiences...
-
In my last post I think I struck a cord with some people in my post 'Unit tests taking too much time'. My intent was NOT to sound like an elitist Agilist or any else of that nature. My intent was simply to put a post out there about the misperception (in my opinion) about how writing unit tests...
-
As you may or may not know, I am a huge fan of Rhino Mocks. Well Ayende has put out Rhino Mocks 3.2 today. Check out more information on it here . You can download it here .
-
Have ever wanted to use a concrete class as both the the PluginFamily and Plugable (information on StructureMap's attributes here ) type in StructureMap ? I know I have, just today in fact (not the first time, but thought I would post about it this time) I needed to do just this. Why would I want to...
-
Jeremy always has something insightful to say, and this is no exception. Check out his TDD post about newbies on projects. http://codebetter.com/blogs/jeremy.miller/archive/2007/07/22/you-re-a-tdd-newbie-on-a-project-team-with-jeremy-what-do-you-do.aspx BTW, If all project leads/managers had this same...
-
Today I finally had to create a mock of a web service proxy, what fun. Of course the first go at it failed because I did not think about the fact that the web service proxy is NOT serializable. This sucked, so what was I to do. Well, fortunately for me web service proxy classes are partial’s, so I am...
-
We were recently contracted to assist a development team in employing some Best Practices . Specifically, they were interested in learning Agile. We began by speaking with the developers and managers to try to determine what would benefit them the most. We were only given three weeks to teach/guide/coach...
-
Over the past few months I have really started to believe in the use of Mocks. When I first started using mocks, I started with NMock (mostly because that is what we had at work). Shortly after that I started playing around with Rhino Mocks at home. Since I have been playing around with both frameworks...
-
This post is in response to Sam Gentile's post over at code better I'm Learning Rhino Mocks NHibernate StructureMap Policy Injection Blocks Log4Ne t (yea I know, what took so long. Answer, last few apps use the Logging App Block) MonoRail (about to start playing with that) Castle Windsor if I find time...
-
Up until a few months ago I had never even attempted to use mocks ( NMock , RhinoMock , etc). Every time I would read about Mocking I thought to myself, this is kinda cool, but seems to be a waste of energy. At the time I saw Mocks as only a way to create ‘placeholders’ for business/data classes. I did...
-
Today my project on finally broke the Millennium mark for Unit Tests. I am pretty happy about this because when I took over the project there were NO unit tests. The effort to get to this point has been pretty substantial and exhausting. But I believe that the product will be MUCH better because of this...