Over the past few weeks I have worked on a few products for my client that will be used as API's. These API's will be used by either their own (external) clients or other internal departments. Working on these projects made me think about testing in a little different light compared...
***** Update ***** This issue is directly related to a #R 4 EAP issue. I was using build 755 and this was an issue. As of build 762, this is no longer an issue. ******************** Today I encountered some odd behavior when trying to run some tests against my configuration object. I am hoping that someone...
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...
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...
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...
Recently a co-worker of mine (Lou, smart guy… (Lou, your shameless plug)) needed to test a UI control that raised an event upon certain conditions. In order to handle this event he needed to have some way to trap that it was raised. The solution he came up with was simple and elegant.., use an anonymous...
I am looking for feedback from the group. I am pretty new to using mocks for my unit tests and I am not sure what the standard approach in the community for usage of mocks in regards to how/where they are stored in your test application. After refactoring some of my tests to use mocks I quickly noticed...