C# version of perl-tdd