static void WriteTest(TextWriter writer,Type type,TestTemplate test) { writer.WriteLine("\t\t[Test]"); writer.WriteLine(string.Format("\t\tpublic void {0}() {{",test.Name)); writer.WriteLine(test.Apply(type)); writer.WriteLine("\t\t}"); writer.WriteLine(); }