public static void Main()
Console.WriteLine("Running Tests...");
Console.WriteLine("...Tests Complete");
public static class Tests
private static void TestNumberOfLines()
var length = result.Trim().Split('\r').Length;
Assert(length == 100, length.ToString());
private static void TestFirstLineIsOne()
var shouldBeOne = result.Trim().Split('\r')[0].Trim();
Assert(shouldBeOne == "1", shouldBeOne);
private static void Assert(bool condition, string msg)
throw new Exception(msg);
for (var i = 1; i <= 100; i++)
strOut += Environment.NewLine;