Changeset 9764 for trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3
- Timestamp:
- 07/26/13 12:54:32 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/AlgorithmExtensions.cs
r9456 r9764 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) { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/CloningConstructorTest.cs
r9456 r9764 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 { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/CollectObjectGraphTest.cs
r9456 r9764 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 { … … 103 102 ga.PopulationSize.Value = 5; 104 103 ga.MaximumGenerations.Value = 5; 105 ga.Engine = new SequentialEngine ();104 ga.Engine = new SequentialEngine.SequentialEngine(); 106 105 ga.Problem = new SingleObjectiveTestFunctionProblem(); 107 106 … … 133 132 ga.PopulationSize.Value = 5; 134 133 ga.MaximumGenerations.Value = 5; 135 ga.Engine = new SequentialEngine ();134 ga.Engine = new SequentialEngine.SequentialEngine(); 136 135 ga.Problem = new SingleObjectiveTestFunctionProblem(); 137 136 ga.Prepare(true); -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/ContentViewTests.cs
r9456 r9764 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 { … … 70 70 try { 71 71 accessor.OnContentChanged(); 72 } 73 catch (Exception ex) { 72 } catch (Exception ex) { 74 73 Assert.Fail(viewType.ToString() + Environment.NewLine + ex.Message); 75 74 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
r9456 r9764 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 … … 119 119 try { 120 120 item = (IDeepCloneable)Activator.CreateInstance(deepCloneableType, nonPublic: false); 121 } 122 catch { continue; } // no default constructor 121 } catch { continue; } // no default constructor 123 122 124 123 IDeepCloneable clone = null; 125 124 try { 126 125 clone = (IDeepCloneable)item.Clone(new Cloner()); 127 } 128 catch (Exception e) { 126 } catch (Exception e) { 129 127 TestContext.WriteLine(Environment.NewLine + deepCloneableType.FullName + ":"); 130 128 TestContext.WriteLine("ERROR! " + e.GetType().Name + @" was thrown during cloning. -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/GeneticAlgorithmTest.cs
r9456 r9764 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 { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/InstantiateCreatablesTest.cs
r9456 r9764 27 27 using Microsoft.VisualStudio.TestTools.UnitTesting; 28 28 29 namespace HeuristicLab _33.Tests {29 namespace HeuristicLab.Tests { 30 30 31 31 [TestClass] … … 49 49 try { 50 50 var instance = Activator.CreateInstance(t); 51 } 52 catch { 51 } catch { 53 52 exceptions.Add("Error instantiating " + t.FullName); 54 53 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/ParameterVisibilityTest.cs
r9456 r9764 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 { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/PluginDependenciesTest.cs
r9456 r9764 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 { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/PluginLoader.cs
r9456 r9764 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"; … … 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 -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs
r9471 r9764 41 41 using HeuristicLab.Optimization; 42 42 using HeuristicLab.Optimization.Operators; 43 using HeuristicLab.ParallelEngine;44 43 using HeuristicLab.Persistence.Default.Xml; 45 44 using HeuristicLab.Problems.ArtificialAnt; … … 61 60 using HeuristicLab.Problems.VehicleRouting.ProblemInstances; 62 61 using HeuristicLab.Selection; 63 using HeuristicLab.SequentialEngine;64 62 using Microsoft.VisualStudio.TestTools.UnitTesting; 65 63 66 64 67 namespace HeuristicLab _33.Tests {65 namespace HeuristicLab.Tests { 68 66 [TestClass] 69 67 [DeploymentItem(@"HeuristicLab-3.3/Resources/C101.opt.txt")] … … 618 616 ls.SetSeedRandomly.Value = true; 619 617 #endregion 620 ls.Engine = new ParallelEngine ();618 ls.Engine = new ParallelEngine.ParallelEngine(); 621 619 return ls; 622 620 } … … 697 695 pso.SetSeedRandomly.Value = true; 698 696 #endregion 699 pso.Engine = new ParallelEngine ();697 pso.Engine = new ParallelEngine.ParallelEngine(); 700 698 return pso; 701 699 } … … 763 761 sa.StartTemperature.Value = 1; 764 762 #endregion 765 sa.Engine = new ParallelEngine ();763 sa.Engine = new ParallelEngine.ParallelEngine(); 766 764 return sa; 767 765 } … … 832 830 833 831 #endregion 834 ts.Engine = new ParallelEngine ();832 ts.Engine = new ParallelEngine.ParallelEngine(); 835 833 return ts; 836 834 } … … 898 896 899 897 #endregion 900 ts.Engine = new ParallelEngine ();898 ts.Engine = new ParallelEngine.ParallelEngine(); 901 899 return ts; 902 900 } … … 976 974 vns.ShakingOperator = shakingOperator; 977 975 #endregion 978 vns.Engine = new ParallelEngine ();976 vns.Engine = new ParallelEngine.ParallelEngine(); 979 977 return vns; 980 978 } … … 1015 1013 gpr.SetSeedRandomly = true; 1016 1014 #endregion 1017 gpr.Engine = new ParallelEngine ();1015 gpr.Engine = new ParallelEngine.ParallelEngine(); 1018 1016 return gpr; 1019 1017 } … … 1049 1047 #region Algorithm Configuration 1050 1048 ScatterSearch ss = new ScatterSearch(); 1051 ss.Engine = new SequentialEngine ();1049 ss.Engine = new SequentialEngine.SequentialEngine(); 1052 1050 ss.Name = "Scatter Search - VRP"; 1053 1051 ss.Description = "A scatter search algorithm which solves the \"C101\" vehicle routing problem (imported from Solomon)"; … … 1102 1100 #region Algorithm Configuration 1103 1101 RAPGA rapga = new RAPGA(); 1104 rapga.Engine = new SequentialEngine ();1102 rapga.Engine = new SequentialEngine.SequentialEngine(); 1105 1103 rapga.Name = "RAPGA - Job Shop Scheduling"; 1106 1104 rapga.Description = "A relevant alleles preserving genetic algorithm which solves a job shop scheduling problem"; … … 1147 1145 .OfType<SM>() 1148 1146 .Single(); 1149 es.Engine = new ParallelEngine ();1147 es.Engine = new ParallelEngine.ParallelEngine(); 1150 1148 } 1151 1149 … … 1176 1174 tSelector.GroupSizeParameter.Value.Value = tournGroupSize; 1177 1175 } 1178 ga.Engine = new ParallelEngine ();1176 ga.Engine = new ParallelEngine.ParallelEngine(); 1179 1177 } 1180 1178 … … 1215 1213 .OfType<MiR>() 1216 1214 .Single(); 1217 ga.Engine = new ParallelEngine ();1215 ga.Engine = new ParallelEngine.ParallelEngine(); 1218 1216 } 1219 1217 -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/StorableConstructorTest.cs
r9456 r9764 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 { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SupportVectorMachineTest.cs
r9456 r9764 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using System.Threading; 25 using HeuristicLab.Algorithms. GeneticAlgorithm;26 using HeuristicLab.Algorithms.DataAnalysis; 26 27 using HeuristicLab.Common; 27 using HeuristicLab. Data;28 using HeuristicLab.P ersistence.Default.Xml;28 using HeuristicLab.Core; 29 using HeuristicLab.Problems.DataAnalysis; 29 30 using Microsoft.VisualStudio.TestTools.UnitTesting; 30 using HeuristicLab.Algorithms.DataAnalysis;31 using HeuristicLab.Problems.DataAnalysis;32 using System.Collections.Generic;33 using HeuristicLab.Core;34 31 35 namespace HeuristicLab _33.Tests {32 namespace HeuristicLab.Tests { 36 33 [TestClass] 37 34 public class SupportVectorMachineTest { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/ThreadSafeLogTest.cs
r9456 r9764 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 { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/ToStringTest.cs
r9456 r9764 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 { … … 57 57 try { 58 58 item.ToString(); 59 } 60 catch (Exception e) { 59 } catch (Exception e) { 61 60 TestContext.WriteLine(item.GetType() + " throws a " + e.GetType() + " in the ToString method."); 62 61 success = false;
Note: See TracChangeset
for help on using the changeset viewer.