Beispiel #1
0
        static void Main()
        {
            MethodsLoader loader  = new MethodsLoader(Path.GetDirectoryName(Application.ExecutablePath) + "\\methods\\");
            var           methods = loader.Load();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
        public void TestLoadsAllIOptimisationMethods()
        {
            MethodsLoader loader    = new MethodsLoader(Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\..\..")) + "\\GUI\\bin\\Debug\\methods\\");
            var           instances = loader.Load();

            foreach (var instance in instances)
            {
                Assert.IsInstanceOfType(instance, typeof(IOptimisationMethod));
            }
        }