- Timestamp:
- 01/17/11 10:49:45 (14 years ago)
- Location:
- trunk/sources/HeuristicLab/3.3/Tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab/3.3/Tests/CloningConstructorTest.cs
r5168 r5306 13 13 [ClassInitialize] 14 14 public static void MyClassInitialize(TestContext testContext) { 15 PluginLoader. pluginAssemblies.Any();15 PluginLoader.Assemblies.Any(); 16 16 } 17 17 … … 22 22 foreach (Type deepCloneableType in ApplicationManager.Manager.GetTypes(typeof(IDeepCloneable))) { 23 23 //test only types contained in HL plugin assemblies 24 if (!PluginLoader. pluginAssemblies.Contains(deepCloneableType.Assembly)) continue;24 if (!PluginLoader.Assemblies.Contains(deepCloneableType.Assembly)) continue; 25 25 26 26 bool found = false; -
trunk/sources/HeuristicLab/3.3/Tests/ContentViewTests.cs
r4512 r5306 52 52 [ClassInitialize] 53 53 public static void MyClassInitialize(TestContext testContext) { 54 PluginLoader. pluginAssemblies.Any();54 PluginLoader.Assemblies.Any(); 55 55 } 56 56 -
trunk/sources/HeuristicLab/3.3/Tests/PluginDependenciesTest.cs
r4632 r5306 38 38 [ClassInitialize] 39 39 public static void MyClassInitialize(TestContext testContext) { 40 loadedPlugins = PluginLoader. pluginAssemblies.ToDictionary(a => a, GetPluginFromAssembly);40 loadedPlugins = PluginLoader.Assemblies.Where(x => PluginLoader.IsPluginAssembly(x)).ToDictionary(a => a, GetPluginFromAssembly); 41 41 pluginNames = loadedPlugins.ToDictionary(a => a.Key.GetName().FullName, a => GetPluginName(a.Value)); 42 42 -
trunk/sources/HeuristicLab/3.3/Tests/PluginLoader.cs
r5272 r5306 12 12 public const string TestAccessorAssemblyExtension = "_Accessor.dll"; 13 13 public const string TestAssemblyExtension = ".Tests.dll"; 14 public static List<Assembly> pluginAssemblies;14 public static List<Assembly> Assemblies; 15 15 16 16 static PluginLoader() { … … 19 19 Assembly.LoadFrom(path); 20 20 21 pluginAssemblies = AppDomain.CurrentDomain.GetAssemblies().Where(IsPluginAssembly).ToList();21 Assemblies = AppDomain.CurrentDomain.GetAssemblies().ToList(); 22 22 } 23 23 24 p rivatestatic bool IsPluginAssembly(Assembly assembly) {24 public static bool IsPluginAssembly(Assembly assembly) { 25 25 return assembly.GetExportedTypes() 26 26 .Where(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface).Any(); -
trunk/sources/HeuristicLab/3.3/Tests/StorableConstructorTest.cs
r5168 r5306 16 16 [ClassInitialize] 17 17 public static void MyClassInitialize(TestContext testContext) { 18 PluginLoader. pluginAssemblies.Any();18 PluginLoader.Assemblies.Any(); 19 19 } 20 20 … … 26 26 .Where(t => StorableClassAttribute.IsStorableClass(t))) { 27 27 //test only types contained in HL plugin assemblies 28 if (!PluginLoader. pluginAssemblies.Contains(storableType.Assembly)) continue;28 if (!PluginLoader.Assemblies.Contains(storableType.Assembly)) continue; 29 29 30 30 IEnumerable<ConstructorInfo> ctors = storableType.GetConstructors(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
Note: See TracChangeset
for help on using the changeset viewer.