static void Main(string[] args) { Assembly assembly = Assembly.GetExecutingAssembly(); foreach (Type t in assembly.GetTypes()) { if (typeof(ITestCode).IsAssignableFrom(t) && typeof(ITestCode) != t) { ITestCode test = Activator.CreateInstance(t) as ITestCode; test.RunTestCode("../../../CodeDump/bin/Debug/"); } } }
public virtual bool test() { ITestCode tested = getTested(); return(tested.test()); }