2/03/2005

Robust code

Trying to get people to stop hard coding expected results in tests is not easy.


IList rowList = db.GetSomeRows()
Assert.Equals(4, rowList.Count);

EEEEEEkkkkkkk

Code is like poetry
blowing in the wind,
beaten from left and right
crashed and regularly skinned,
choose the best of parchment
to ward against the eternal din.

No comments: