static void Main() { DataBinderTests dbt = new DataBinderTests(); Type t = typeof(DataBinderTests); MethodInfo [] methods = t.GetMethods(); foreach (MethodInfo m in methods) { if (m.Name.Substring(0, 4) == "Test") { m.Invoke(dbt, null); } } }
static void Main () { DataBinderTests dbt = new DataBinderTests (); Type t = typeof (DataBinderTests); MethodInfo [] methods = t.GetMethods (); foreach (MethodInfo m in methods) { if (m.Name.Substring (0, 4) == "Test") m.Invoke (dbt, null); } }