예제 #1
0
        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);
                }
            }
        }
예제 #2
0
		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);
			}
		}