Пример #1
0
        public void Method1()
        {
            AppAssemblyFinder _finder = new AppAssemblyFinder();

            Type[] modules = _finder.FindTypes <ModuleBase>(
                type => type.IsDeriveClassFrom <ModuleBase>()
                );
            IEnumerable <ModuleBase> _modules = modules?.Select(m => (ModuleBase)Activator.CreateInstance(m)).OrderBy(m => m.ModuleLevel);

            Assert.IsTrue(_modules.Count() > 0);
        }