private void CompileClassTest(Action <ProcedureBuilder> buildMock) { ProcedureBuilder m = new ProcedureBuilder(); buildMock(m); MockGenerator g = new MockGenerator(sb, ""); g.WriteClass(m.Procedure); }