Archive for April, 2009

Faking WCF Async Calls – Part II

In the last post, I simulated an asynchronous call to WCF, by setting custom code behavior on the Begin and End. But that’s not enough. I want to make that even shorter and readable. And ...

Read More

Faking Async Calls in WCF – Part I

Once upon a time, I wrote about writing tests for WCF servers and clients. WCF can be invoked also in an async method. What you would do is generate WCF proxies that have method definition ...

Read More

Using CThru to Fake Entire Assemblies

In our forums, Soon Hui Ngu asked if there’s a way to fake recursively entire assemblies, without too much hustle. And the answer is – almost! In the current implementation of CThru, you can’t do ...

Read More

7 Phases of Unit Testing – I Did It My Way

Karl Seguin blogged a short nice post on the "7 phases of unit testing". I’ll take the jump and see how they fit into my life. 1 – Refuse to unit test because "you don’t ...

Read More

The First Unit Test – Act-Assert-Arrange

I’ve written before about the process of writing the first unit test. I want to give an example of how you’re actually doing it, and I hope that after you read this, you’ll understand the ...

Read More

WCF tip – How to fake a method inside WebOperationContext

One of our customers had a very interesting problem. When using he needed to set WCF’s WebOperationContext.Current.IncomingRequest.UserAgent to return a specific string. Usually this would not have been a problem using the AAA API: 1: ...

Read More

Ian Cartwright: “Test code is just code”

A great post from Ian Cartwright, on how to treat test code. You’ve probably guessed it, it’s not different than other production code. A few comments on the traps of tests he lists: Cut and ...

Read More

What’s More Important Than TDD?

Another post from Paul Bourdeaux, this time on the bias you have from knowing how the code works, and how it affects your tests. As I’ve been there before, I agree with the premise. When ...

Read More

Unit Testing – Cool Slide Deck

There’s a nice slide deck on unit testing here (via Richard OD). First, it’s a really nice read, both for developers and managers. There is one slide that really caught my eye: "Tests reduce the ...

Read More

Unit Testing Is Boring

Another post, by Pawel Brodizinski, via Dror, on when unit tests fail. I hear all of the above. Most of them have solutions based on practices. But the one about unit testing being boring – ...

Read More
TOP