/* * Nathan Desmet */ using System; namespace TestFramework { public class Tester { public Tester() { T instance = (T)Activator.CreateInstance(typeof(T), new object[] {}); var methods = typeof(T).GetMethods(); foreach (var method in methods) { try{ method.Invoke(instance, new object[]{}); } catch(System.Reflection.TargetParameterCountException) {} catch(Exception e) { string[] s = e.InnerException.ToString().Split('\n'); string[] s2 = s[1].Split(' '); Console.WriteLine(s2[3]); } } } } }