Eddie Garmon's Weblog

some architecture, some c#

January 2005 - Posts

Quickest way to create a repeating string in c#?

int repeatCount = 10;
string value = "hello world.";
string repeated = string.Join(value, new string[repeatCount + 1]);
Console.WriteLine(repeated);

More Extending Nunit (version 2.2)

There is some slight code duplication (from the NUnit framework), but it works with 1.X and 2.0 frameworks...

ObjectGraphAssert and ObjectGraphFixture: Here is the zip.

If you create a failing test, please pass it on so I can update my code.

Enjoy

More Posts