-
Last night I had the opportunity to do my 'Taking your tests to the next level with Mocks' session to the TriNug user group. I would first like to say thanks to Doug Wilson and his entire group. They had a great turn out (45ish people) and they asked a ton of great questions. To kick off the...
-
One thing I like to do when I am using a IoC (Inversion of Control) container is to create simple test that ensure that my objects have been wired up correctly and can be created via the IoC container. I know this may seem like overkill, but I feel that by having my IoC bindings covered by tests I am...
-
-- UPDATE See text in red below -- Ok, I am in NO way trying to say that this is either Rhino's issue or MSTest. I am simply blogging this with the intent that someone can shed some insight as to what may be going on. Although, since I know that the AAA logic of Rhino works with the EXACT same code...
-
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...
-
Today, I was working on one of my first ever (actually, it is my 2nd) WCF services. This service was meant to be pretty simple, 1 method with 4 param's. It should not take that long, or will it. To get the service started, I began by writing the library that the service would actually consume, the business...
-
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...
-
All software projects will amass some amount of technical debt. This is not a necessarily bad thing; it is just he cost of doing business. As developers the only thing we can do is try to control/limit the amount of technical debt we build up. If you agree that all software projects build up some amount...
-
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...