public static void Main(string[] args) { Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); TestExcute.Excute(typeof(Program)); }
public static void RunTest(Type t) { System.Reflection.Assembly dataAccess = System.Reflection.Assembly.GetAssembly(t); foreach (var type in dataAccess.GetTypes()) { if (!type.IsAbstract && typeof(TestExcute).IsAssignableFrom(type)) { TestExcute exe = Activator.CreateInstance(type) as TestExcute; if (!exe.Off) { lrTag("Class Name : " + type.Name, "*", 10); Console.Write(Environment.NewLine); exe.Execute(); } } } }
static void Main(string[] args) { TestExcute.RunTest(typeof(Program)); Console.Read(); }