- Timestamp:
- 07/18/14 12:01:13 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 deleted
- 15 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/AlgorithmExtensions.cs
r7915 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using HeuristicLab.Core; 26 26 27 namespace HeuristicLab _33.Tests {27 namespace HeuristicLab.Tests { 28 28 public static class AlgorithmExtensions { 29 29 public static void StartSync(this IExecutable executable, CancellationToken cancellationToken) { -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/CloningConstructorTest.cs
r7915 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 using Microsoft.VisualStudio.TestTools.UnitTesting; 29 29 30 namespace HeuristicLab _33.Tests {30 namespace HeuristicLab.Tests { 31 31 [TestClass] 32 32 public class CloningConstructorTest { … … 38 38 39 39 [TestMethod] 40 [TestCategory("General")] 41 [TestCategory("Essential")] 42 [TestProperty("Time", "medium")] 40 43 public void TestCloningConstructor() { 41 44 StringBuilder errorMessage = new StringBuilder(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/CollectObjectGraphTest.cs
r8309 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 31 31 using HeuristicLab.Persistence.Default.Xml; 32 32 using HeuristicLab.Problems.TestFunctions; 33 using HeuristicLab.SequentialEngine;34 33 using Microsoft.VisualStudio.TestTools.UnitTesting; 35 34 36 namespace HeuristicLab _33.Tests {35 namespace HeuristicLab.Tests { 37 36 [TestClass] 38 37 public class CollectObjectGraphTest { … … 45 44 46 45 [TestMethod] 47 [DeploymentItem(@"HeuristicLab-3.3/Resources/GA_SymbReg.hl")] 46 [TestCategory("General")] 47 [TestCategory("Essential")] 48 [TestProperty("Time", "medium")] 48 49 public void CollectGASample() { 49 GeneticAlgorithm ga = (GeneticAlgorithm)XmlParser.Deserialize( "GA_SymbReg.hl");50 GeneticAlgorithm ga = (GeneticAlgorithm)XmlParser.Deserialize(@"Test Resources\GA_SymbReg.hl"); 50 51 51 52 Stopwatch watch = new Stopwatch(); … … 95 96 /// </summary> 96 97 [TestMethod] 98 [TestCategory("General")] 99 [TestProperty("Time", "long")] 97 100 public void AlgorithmExecutions() { 98 101 var algs = new List<IAlgorithm>(); … … 103 106 ga.PopulationSize.Value = 5; 104 107 ga.MaximumGenerations.Value = 5; 105 ga.Engine = new SequentialEngine ();108 ga.Engine = new SequentialEngine.SequentialEngine(); 106 109 ga.Problem = new SingleObjectiveTestFunctionProblem(); 107 110 … … 121 124 /// </summary> 122 125 [TestMethod] 126 [TestCategory("General")] 127 [TestProperty("Time", "medium")] 123 128 public void ParallelAlgorithmExecutions() { 124 129 int n = 60; … … 133 138 ga.PopulationSize.Value = 5; 134 139 ga.MaximumGenerations.Value = 5; 135 ga.Engine = new SequentialEngine ();140 ga.Engine = new SequentialEngine.SequentialEngine(); 136 141 ga.Problem = new SingleObjectiveTestFunctionProblem(); 137 142 ga.Prepare(true); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/ContentViewTests.cs
r7915 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 using Microsoft.VisualStudio.TestTools.UnitTesting; 29 29 30 namespace HeuristicLab _33.Tests {30 namespace HeuristicLab.Tests { 31 31 [TestClass] 32 32 public class ContentViewTests { 33 33 public ContentViewTests() { 34 }35 36 private TestContext testContextInstance;37 38 /// <summary>39 ///Gets or sets the test context which provides40 ///information about and functionality for the current test run.41 ///</summary>42 public TestContext TestContext {43 get {44 return testContextInstance;45 }46 set {47 testContextInstance = value;48 }49 34 } 50 35 … … 57 42 58 43 [TestMethod] 44 [TestCategory("General")] 45 [TestCategory("Essential")] 46 [TestProperty("Time", "long")] 59 47 public void ContentViewAttributeTest() { 60 48 //get all non-generic and instantiable classes which implement IContentView -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
r8078 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 30 30 using Microsoft.VisualStudio.TestTools.UnitTesting; 31 31 32 namespace HeuristicLab _33.Tests {32 namespace HeuristicLab.Tests { 33 33 /// <summary> 34 34 /// Summary description for DeepCloneableCloningTest … … 40 40 public static void MyClassInitialize(TestContext testContext) { 41 41 PluginLoader.Assemblies.Any(); 42 } 43 44 private TestContext testContextInstance; 45 public TestContext TestContext { 46 get { return testContextInstance; } 47 set { testContextInstance = value; } 42 48 } 43 49 … … 55 61 } 56 62 57 private TestContext testContextInstance;58 63 private readonly HashSet<Type> excludedTypes; 59 64 60 /// <summary>61 ///Gets or sets the test context which provides62 ///information about and functionality for the current test run.63 ///</summary>64 public TestContext TestContext {65 get {66 return testContextInstance;67 }68 set {69 testContextInstance = value;70 }71 }72 73 #region Additional test attributes74 //75 // You can use the following additional attributes as you write your tests:76 //77 // Use ClassInitialize to run code before running the first test in the class78 // [ClassInitialize()]79 // public static void MyClassInitialize(TestContext testContext) { }80 //81 // Use ClassCleanup to run code after all tests in a class have run82 // [ClassCleanup()]83 // public static void MyClassCleanup() { }84 //85 // Use TestInitialize to run code before running each test86 // [TestInitialize()]87 // public void MyTestInitialize() { }88 //89 // Use TestCleanup to run code after each test has run90 // [TestCleanup()]91 // public void MyTestCleanup() { }92 //93 #endregion94 95 65 [TestMethod] 96 [DeploymentItem(@"HeuristicLab-3.3\Resources\SamplesExperimentFinished.hl")] 66 [TestCategory("General")] 67 [TestCategory("Essential")] 68 [TestProperty("Time", "long")] 97 69 public void TestCloningFinishedExperiment() { 98 Experiment experiment = (Experiment)XmlParser.Deserialize( "SamplesExperimentFinished.hl");70 Experiment experiment = (Experiment)XmlParser.Deserialize(@"Test Resources\SamplesExperimentFinished.hl"); 99 71 100 72 Experiment clone = (Experiment)experiment.Clone(new Cloner()); … … 105 77 106 78 [TestMethod] 79 [TestCategory("General")] 80 [TestCategory("Essential")] 81 [TestProperty("Time", "long")] 107 82 public void TestCloningAllDeepCloneables() { 108 83 PluginLoader.Assemblies.ToArray(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/GeneticAlgorithmTest.cs
r7915 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 using Microsoft.VisualStudio.TestTools.UnitTesting; 29 29 30 namespace HeuristicLab _33.Tests {30 namespace HeuristicLab.Tests { 31 31 [TestClass] 32 32 public class GeneticAlgorithmTest { … … 34 34 35 35 private TestContext testContextInstance; 36 37 /// <summary>38 ///Gets or sets the test context which provides39 ///information about and functionality for the current test run.40 ///</summary>41 36 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 37 get { return testContextInstance; } 38 set { testContextInstance = value; } 48 39 } 49 50 #region Additional test attributes51 //52 // You can use the following additional attributes as you write your tests:53 //54 // Use ClassInitialize to run code before running the first test in the class55 // [ClassInitialize()]56 // public static void MyClassInitialize(TestContext testContext) { }57 //58 // Use ClassCleanup to run code after all tests in a class have run59 // [ClassCleanup()]60 // public static void MyClassCleanup() { }61 //62 // Use TestInitialize to run code before running each test63 // [TestInitialize()]64 // public void MyTestInitialize() { }65 //66 // Use TestCleanup to run code after each test has run67 // [TestCleanup()]68 // public void MyTestCleanup() { }69 //70 #endregion71 40 72 41 private EventWaitHandle trigger = new AutoResetEvent(false); … … 74 43 75 44 [TestMethod] 76 [DeploymentItem(@"HeuristicLab-3.3/Resources/GA_TSP.hl")] 45 [TestCategory("General")] 46 [TestProperty("Time", "long")] 77 47 public void GeneticAlgorithmPerformanceTest() { 78 48 ex = null; 79 GeneticAlgorithm ga = (GeneticAlgorithm)XmlParser.Deserialize( "GA_TSP.hl");49 GeneticAlgorithm ga = (GeneticAlgorithm)XmlParser.Deserialize(@"Test Resources\GA_TSP.hl"); 80 50 ga.ExceptionOccurred += new EventHandler<EventArgs<Exception>>(ga_ExceptionOccurred); 81 51 ga.Stopped += new EventHandler(ga_Stopped); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/InstantiateCreatablesTest.cs
r8560 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 27 27 using Microsoft.VisualStudio.TestTools.UnitTesting; 28 28 29 namespace HeuristicLab _33.Tests {29 namespace HeuristicLab.Tests { 30 30 31 31 [TestClass] … … 37 37 } 38 38 [TestMethod] 39 [TestCategory("General")] 40 [TestCategory("Essential")] 41 [TestProperty("Time", "medium")] 39 42 public void InstantiateAllCreatables() { 40 43 var exceptions = new List<string>(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/ParameterVisibilityTest.cs
r8154 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 using Microsoft.VisualStudio.TestTools.UnitTesting; 29 29 30 namespace HeuristicLab _33.Tests {30 namespace HeuristicLab.Tests { 31 31 [TestClass] 32 32 public class ParameterVisibilityTest { … … 36 36 PluginLoader.Assemblies.Any(); 37 37 } 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///information about and functionality for the current test run. 41 ///</summary> 38 42 39 private TestContext testContextInstance; 43 40 public TestContext TestContext { 44 get { 45 return testContextInstance; 46 } 47 set { 48 testContextInstance = value; 49 } 41 get { return testContextInstance; } 42 set { testContextInstance = value; } 50 43 } 51 44 52 45 [TestMethod] 46 [TestCategory("General")] 47 [TestCategory("Essential")] 48 [TestProperty("Time", "long")] 53 49 public void TestParameterVisibility() { 54 50 StringBuilder errorMessage = new StringBuilder(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/PluginDependenciesTest.cs
r8164 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 29 29 using Microsoft.VisualStudio.TestTools.UnitTesting; 30 30 31 namespace HeuristicLab _33.Tests {31 namespace HeuristicLab.Tests { 32 32 [TestClass] 33 33 public class PluginDependenciesTest { … … 53 53 54 54 [TestMethod] 55 [TestCategory("General")] 56 [TestCategory("Essential")] 57 [TestProperty("Time", "short")] 55 58 public void CheckReferenceAssembliesForPluginDependencies() { 56 59 StringBuilder errorMessage = new StringBuilder(); … … 76 79 77 80 [TestMethod] 81 [TestCategory("General")] 82 [TestCategory("Essential")] 83 [TestProperty("Time", "short")] 78 84 public void CheckPluginDependenciesForReferencedAssemblies() { 79 85 StringBuilder errorMessage = new StringBuilder(); … … 86 92 87 93 if (pluginDependencyName == "HeuristicLab.MathJax") continue; //is never referenced as this plugin contains HTML files 94 if (pluginDependencyName == "HeuristicLab.MatlabConnector") continue; //the matlab connector is loaded dynamically and hence not referenced by the dll 88 95 var referencedPluginAssemblies = pluginAssembly.GetReferencedAssemblies().Where(IsPluginAssemblyName); 89 96 if (referencedPluginAssemblies.Any(a => pluginNames[a.FullName] == pluginDependencyName)) continue; … … 103 110 104 111 private static Type GetPluginFromAssembly(Assembly assembly) { 105 return assembly.GetExportedTypes(). Where(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface).FirstOrDefault();112 return assembly.GetExportedTypes().FirstOrDefault(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface); 106 113 } 107 114 -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/PluginLoader.cs
r8028 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 27 27 using HeuristicLab.PluginInfrastructure; 28 28 29 namespace HeuristicLab _33.Tests {29 namespace HeuristicLab.Tests { 30 30 public static class PluginLoader { 31 31 public const string ExecutableExtension = ".exe"; … … 36 36 37 37 static PluginLoader() { 38 foreach (string path in Directory.EnumerateFiles( Environment.CurrentDirectory).Where(IsRelevantAssemblyPath)) {38 foreach (string path in Directory.EnumerateFiles(AppDomain.CurrentDomain.BaseDirectory).Where(IsRelevantAssemblyPath)) { 39 39 try { 40 40 Assembly.LoadFrom(path); 41 } 42 catch (BadImageFormatException) { } 41 } catch (BadImageFormatException) { } 43 42 } 44 43 // test relevant path again to exclude previously loaded assemblies -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/StorableConstructorTest.cs
r7915 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 30 30 using Microsoft.VisualStudio.TestTools.UnitTesting; 31 31 32 namespace HeuristicLab _33.Tests {32 namespace HeuristicLab.Tests { 33 33 [TestClass] 34 34 public class StorableConstructorTest { … … 41 41 42 42 [TestMethod] 43 [TestCategory("General")] 44 [TestCategory("Essential")] 45 [TestProperty("Time", "short")] 43 46 public void TestStorableConstructor() { 44 47 StringBuilder errorMessage = new StringBuilder(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/ThreadSafeLogTest.cs
r7915 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 26 27 namespace HeuristicLab _33.Tests {27 namespace HeuristicLab.Tests { 28 28 [TestClass] 29 29 public class ThreadSafeLogTest { 30 30 31 31 [TestMethod] 32 [TestCategory("General")] 33 [TestProperty("Time", "short")] 32 34 public void ThreadSafeLogThreadSafetyTest() { 33 35 int count = 10000; -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/ToStringTest.cs
r8088 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 27 28 namespace HeuristicLab _33.Tests {28 namespace HeuristicLab.Tests { 29 29 [TestClass] 30 30 public class ToStringTest { 31 31 32 32 private TestContext testContextInstance; 33 /// <summary>34 ///Gets or sets the test context which provides35 ///information about and functionality for the current test run.36 ///</summary>37 33 public TestContext TestContext { 38 get { 39 return testContextInstance; 40 } 41 set { 42 testContextInstance = value; 43 } 34 get { return testContextInstance; } 35 set { testContextInstance = value; } 44 36 } 45 37 … … 51 43 52 44 [TestMethod] 45 [TestCategory("General")] 46 [TestCategory("Essential")] 47 [TestProperty("Time", "long")] 53 48 public void TestToString() { 54 49 bool success = true;
Note: See TracChangeset
for help on using the changeset viewer.