Recent Posts

Cut the abstractions by putting test hooks by Test Driven Development

I have been hearing about testable code for a long time now. It looks somewhat like this, although I had to cut on the number of interfaces along the way. We go through a lot of contortions to be able to do something fairly simple, avoid hitting a data...

Hey you, developer! Learn a bit of business speak! by Test Driven Development

In a comment to one of my posts, Dave Mertens said: I often wish I had the luxury the throw away the current code and start from scratch. Why. Because my manager ask me how long it takes to fix just this bug. 80% of the bugs (luckily we don't have...

re: Are you smart enough to do without TDD by Test Driven Development

Daniel has posted a reply to my post , titling it: Are you smart enough to do without TDD . I more or less expected to get responses like that, which was why I was hesitant to post it. Contrary to popular opinion, I don’t really enjoy being controversial...

Scenario Driven Tests by Test Driven Development

I originally titled this blog post: Separate the scenario under test from the asserts. I intentionally use the terminology scenario under test, instead of calling it class or method under test. One of the main problem with unit testing is that we are...

Even tests has got to justify themselves by Test Driven Development

Let us get a few things out of the way: I am not using TDD. I am not using BDD. I am not using Test After. I am not ignoring testing. I considered not posting this post, because of the likely response, but it is something that I think it worth at least...

Rhino Mocks, Github & Continuous Integration Builds by Rhino Mocks

Well, it is official now, Rhino Mocks have a new home , and it is on github . We had a chance to try several common development scenarios with it, accepting patches & commits from other people, and so far I can tell you that I am very impressed with...

Avé! Duci novo, similis duci seneci! by Rhino Mocks

A while ago I was contacted by a friend who asked me if I am offering a commercial version of Rhino Mocks. That is not a mistake, he was working in a place where the use of Open Source Software was not allowed, and decided that the simplest way to use...

Rhino Mocks 4.0 Planning Forum by Rhino Mocks

It was brought up in the mailing list that we should have a more structured way of managing the ideas for Rhino Mocks 4.0, I agree, and the forum is here: http://nhprof.uservoice.com/pages/28152-rhino-mocks-4-0 Read More...

Planning for Rhino Mocks 4.0 by Rhino Mocks

Well, now that Rhino Mocks 3.6 is out of the way, we need to think about what the next version will look like. Initially, I thought to match Rhino Mocks 4.0 to the .NET 4.0 release and support mocking dynamic variables, but while this is still on the...

Rhino Mocks 3.6 by Rhino Mocks

This release is mostly to put out all the patches & fixes that went into Rhino Mocks since the 3.5 release, almost a year ago. The changes from the previous version are: Dynamic mocks and stubs will now assume that a call is match by any number of...

On PSake by Rhino Mocks

James Kovacks introduced psake ( a power shell based build system )over a year ago, and at the time, I gave it a glance and decided that it was interesting, but not worth further investigation. This weekend, as I was restructuring my Rhino Tools project...

The complexity of unity by Rhino Mocks

This post is about the Rhino Tools project. It has been running for a long time now, over 5 years, and amassed quite a few projects in it. I really like the codebase in the projects in Rhino Tools, but secondary aspects has been creeping in that made...

Assert.True is the tool of last resort by Test Driven Development

I was just reviewing someone’s code, and as I was browsing through the tests, I run into the following anti pattern, just about all the asserts were specified as: Assert.True(pet.Owner == " Baz "); The problem with that is that this is a perfect...

Fixing test failures using binary search by Test Driven Development

With Rhino Queues, I have a very serious problem. While all the tests would run if they were run individually, running them in concrete would cause them to fail. That is a pretty common case of some test affecting the global state of the system (in fact...

Challenge: multi threaded test failure by Test Driven Development

On one of my machines, I can consistently get the following test failure, because of an exception throw here: As you can see, we get an ObjectDisposedException here, which cause the test to fail. There is only one problem with that: We only dispose the...
More Posts Next page »