Friday, June 22, 2007

How would you unit test this?

if ( Jack.WorkQuantity == "All"
    && Jack.PlayQuantity == "No" )
{
    Jack.BoyType = BoyTypes.Dull;
}


It's a trick question, the answer is "Don't." Go outside, nerd.

Submit this story to DotNetKicks

0comments: