Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3
- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 22 edited
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.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 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.Encodings.PermutationEncoding-3.3/Auxiliary.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 namespace HeuristicLab.Encodings.PermutationEncoding.Tests { 22 using HeuristicLab.Encodings.PermutationEncoding; 23 24 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 23 25 public static class Auxiliary { 24 26 public static bool PermutationIsEqualByPosition(Permutation p1, Permutation p2) { -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CosaCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for CosaCrossoverTest and is intended … … 31 32 [TestClass()] 32 33 public class CosaCrossoverTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void CosaCrossoverCrossTest() { 40 88 TestRandom random = new TestRandom(); … … 47 95 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 48 96 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 49 } catch (System.InvalidOperationException) { 97 } 98 catch (System.InvalidOperationException) { 50 99 exceptionFired = true; 51 100 } … … 56 105 ///A test for Apply 57 106 ///</summary> 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 107 [TestMethod()] 61 108 public void CosaCrossoverApplyTest() { 62 109 TestRandom random = new TestRandom(); … … 104 151 try { 105 152 CosaCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 106 } catch (System.ArgumentException) { 153 } 154 catch (System.ArgumentException) { 107 155 exceptionFired = true; 108 156 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CyclicCrossover2Test.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for CyclicCrossover2Test and is intended … … 31 32 [TestClass()] 32 33 public class CyclicCrossover2Test { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void CyclicCrossover2CrossTest() { 40 88 TestRandom random = new TestRandom(); … … 46 94 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 47 95 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 48 } catch (System.InvalidOperationException) { 96 } 97 catch (System.InvalidOperationException) { 49 98 exceptionFired = true; 50 99 } … … 55 104 ///A test for Apply 56 105 ///</summary> 57 [TestMethod] 58 [TestCategory("Encodings.Permutation")] 59 [TestProperty("Time", "short")] 106 [TestMethod()] 60 107 public void CyclicCrossover2ApplyTest() { 61 108 TestRandom random = new TestRandom(); … … 79 126 try { 80 127 CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 81 } catch (System.ArgumentException) { 128 } 129 catch (System.ArgumentException) { 82 130 exceptionFired = true; 83 131 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CyclicCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for CyclicCrossover and is intended … … 31 32 [TestClass()] 32 33 public class CyclicCrossoverTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void CyclicCrossoverCrossTest() { 40 88 TestRandom random = new TestRandom(); … … 47 95 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 48 96 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 49 } catch (System.InvalidOperationException) { 97 } 98 catch (System.InvalidOperationException) { 50 99 exceptionFired = true; 51 100 } … … 56 105 ///A test for Apply 57 106 ///</summary> 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 107 [TestMethod()] 61 108 public void CyclicCrossoverApplyTest() { 62 109 TestRandom random = new TestRandom(); … … 80 127 try { 81 128 CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 82 } catch (System.ArgumentException) { 129 } 130 catch (System.ArgumentException) { 83 131 exceptionFired = true; 84 132 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/EdgeRecombinationCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for EdgeRecombinationCrossover and is intended … … 31 32 [TestClass()] 32 33 public class EdgeRecombinationCrossoverTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void EdgeRecombinationCrossoverCrossoverCrossTest() { 40 88 TestRandom random = new TestRandom(); … … 47 95 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 48 96 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 49 } catch (System.InvalidOperationException) { 97 } 98 catch (System.InvalidOperationException) { 50 99 exceptionFired = true; 51 100 } … … 56 105 ///A test for Apply 57 106 ///</summary> 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 107 [TestMethod()] 61 108 public void EdgeRecombinationCrossoverApplyTest() { 62 109 TestRandom random = new TestRandom(); … … 81 128 try { 82 129 EdgeRecombinationCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 83 } catch (System.ArgumentException) { 130 } 131 catch (System.ArgumentException) { 84 132 exceptionFired = true; 85 133 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/InsertionManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding; 22 23 using HeuristicLab.Tests; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 25 25 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {26 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 26 27 /// <summary> 27 28 ///This is a test class for InsertionManipulator and is intended … … 30 31 [TestClass()] 31 32 public class InsertionManipulatorTest { 33 34 35 private TestContext testContextInstance; 36 37 /// <summary> 38 ///Gets or sets the test context which provides 39 ///information about and functionality for the current test run. 40 ///</summary> 41 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 48 } 49 50 #region Additional test attributes 51 // 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 class 55 //[ClassInitialize()] 56 //public static void MyClassInitialize(TestContext testContext) 57 //{ 58 //} 59 // 60 //Use ClassCleanup to run code after all tests in a class have run 61 //[ClassCleanup()] 62 //public static void MyClassCleanup() 63 //{ 64 //} 65 // 66 //Use TestInitialize to run code before running each test 67 //[TestInitialize()] 68 //public void MyTestInitialize() 69 //{ 70 //} 71 // 72 //Use TestCleanup to run code after each test has run 73 //[TestCleanup()] 74 //public void MyTestCleanup() 75 //{ 76 //} 77 // 78 #endregion 79 80 32 81 /// <summary> 33 82 ///A test for Apply 34 83 ///</summary> 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 84 [TestMethod()] 38 85 public void InsertionManipulatorApplyTest() { 39 86 TestRandom random = new TestRandom(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/InversionManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding; 22 23 using HeuristicLab.Tests; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 25 25 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {26 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 26 27 /// <summary> 27 28 ///This is a test class for InversionManipulator and is intended … … 30 31 [TestClass()] 31 32 public class InversionManipulatorTest { 33 34 35 private TestContext testContextInstance; 36 37 /// <summary> 38 ///Gets or sets the test context which provides 39 ///information about and functionality for the current test run. 40 ///</summary> 41 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 48 } 49 50 #region Additional test attributes 51 // 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 class 55 //[ClassInitialize()] 56 //public static void MyClassInitialize(TestContext testContext) 57 //{ 58 //} 59 // 60 //Use ClassCleanup to run code after all tests in a class have run 61 //[ClassCleanup()] 62 //public static void MyClassCleanup() 63 //{ 64 //} 65 // 66 //Use TestInitialize to run code before running each test 67 //[TestInitialize()] 68 //public void MyTestInitialize() 69 //{ 70 //} 71 // 72 //Use TestCleanup to run code after each test has run 73 //[TestCleanup()] 74 //public void MyTestCleanup() 75 //{ 76 //} 77 // 78 #endregion 79 80 32 81 /// <summary> 33 82 ///A test for Apply 34 83 ///</summary> 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 84 [TestMethod()] 38 85 public void InversionManipulatorApplyTest() { 39 86 TestRandom random = new TestRandom(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/MaximalPreservativeCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for MaximalPreservativeCrossover and is intended … … 31 32 [TestClass()] 32 33 public class MaximalPreservativeCrossoverTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void MaximalPreservativeCrossoverCrossTest() { 40 88 TestRandom random = new TestRandom(); … … 47 95 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 48 96 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 49 } catch (System.InvalidOperationException) { 97 } 98 catch (System.InvalidOperationException) { 50 99 exceptionFired = true; 51 100 } … … 56 105 ///A test for Apply 57 106 ///</summary> 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 107 [TestMethod()] 61 108 public void MaximalPreservativeCrossoverApplyTest() { 62 109 TestRandom random = new TestRandom(); … … 80 127 try { 81 128 MaximalPreservativeCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 82 } catch (System.ArgumentException) { 129 } 130 catch (System.ArgumentException) { 83 131 exceptionFired = true; 84 132 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderBasedCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for OrderBasedCrossoverTest and is intended … … 31 32 [TestClass()] 32 33 public class OrderBasedCrossoverTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void OrderBasedCrossoverCrossTest() { 40 88 TestRandom random = new TestRandom(); … … 47 95 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 48 96 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 49 } catch (System.InvalidOperationException) { 97 } 98 catch (System.InvalidOperationException) { 50 99 exceptionFired = true; 51 100 } … … 56 105 ///A test for Apply 57 106 ///</summary> 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 107 [TestMethod()] 61 108 public void OrderBasedCrossoverApplyTest() { 62 109 TestRandom random = new TestRandom(); … … 78 125 try { 79 126 OrderBasedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 80 } catch (System.ArgumentException) { 127 } 128 catch (System.ArgumentException) { 81 129 exceptionFired = true; 82 130 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderCrossover2Test.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for OrderCrossover2Test and is intended … … 31 32 [TestClass()] 32 33 public class OrderCrossover2Test { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void OrderCrossover2CrossTest() { 40 88 TestRandom random = new TestRandom(); … … 45 93 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 46 94 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 47 } catch (System.InvalidOperationException) { 95 } 96 catch (System.InvalidOperationException) { 48 97 exceptionFired = true; 49 98 } … … 54 103 ///A test for Apply 55 104 ///</summary> 56 [TestMethod] 57 [TestCategory("Encodings.Permutation")] 58 [TestProperty("Time", "short")] 105 [TestMethod()] 59 106 public void OrderCrossover2ApplyTest() { 60 107 TestRandom random = new TestRandom(); … … 78 125 try { 79 126 OrderCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 80 } catch (System.ArgumentException) { 127 } 128 catch (System.ArgumentException) { 81 129 exceptionFired = true; 82 130 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for OrderCrossoverTest and is intended … … 31 32 [TestClass()] 32 33 public class OrderCrossoverTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void OrderCrossoverCrossTest() { 40 88 TestRandom random = new TestRandom(); … … 47 95 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 48 96 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 49 } catch (System.InvalidOperationException) { 97 } 98 catch (System.InvalidOperationException) { 50 99 exceptionFired = true; 51 100 } … … 56 105 ///A test for Apply 57 106 ///</summary> 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 107 [TestMethod()] 61 108 public void OrderCrossoverApplyTest() { 62 109 TestRandom random = new TestRandom(); … … 131 178 try { 132 179 OrderCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 133 } catch (System.ArgumentException) { 180 } 181 catch (System.ArgumentException) { 134 182 exceptionFired = true; 135 183 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PartiallyMatchedCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for PartiallyMatchedCrossover and is intended … … 31 32 [TestClass()] 32 33 public class PartiallyMatchedCrossoverTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void PartiallyMatchedCrossTest() { 40 88 TestRandom random = new TestRandom(); … … 47 95 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 48 96 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 49 } catch (System.InvalidOperationException) { 97 } 98 catch (System.InvalidOperationException) { 50 99 exceptionFired = true; 51 100 } … … 56 105 ///A test for Apply 57 106 ///</summary> 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 107 [TestMethod()] 61 108 public void PartiallyMatchedCrossoverApplyTest() { 62 109 TestRandom random = new TestRandom(); … … 92 139 try { 93 140 PartiallyMatchedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 94 } catch (System.ArgumentException) { 141 } 142 catch (System.ArgumentException) { 95 143 exceptionFired = true; 96 144 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PermutationEqualityComparerTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding; 22 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 23 24 24 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {25 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 25 26 [TestClass] 26 27 public class PermutationEqualityComparerTest { 27 28 [TestMethod] 28 [TestCategory("Encodings.Permutation")]29 [TestProperty("Time", "short")]30 29 public void TestPermutationEqualityComparer() { 31 30 PermutationEqualityComparer comparer = new PermutationEqualityComparer(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PositionBasedCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for PositionBasedCrossover and is intended … … 31 32 [TestClass()] 32 33 public class PositionBasedCrossoverTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///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 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void PositionBasedCrossoverCrossTest() { 40 88 TestRandom random = new TestRandom(); … … 48 96 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 49 97 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4) })); 50 } catch (System.InvalidOperationException) { 98 } 99 catch (System.InvalidOperationException) { 51 100 exceptionFired = true; 52 101 } … … 57 106 ///A test for Apply 58 107 ///</summary> 59 [TestMethod] 60 [TestCategory("Encodings.Permutation")] 61 [TestProperty("Time", "short")] 108 [TestMethod()] 109 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 62 110 public void PositionBasedCrossoverApplyTest() { 63 111 TestRandom random = new TestRandom(); … … 83 131 try { 84 132 PositionBasedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 85 } catch (System.ArgumentException) { 133 } 134 catch (System.ArgumentException) { 86 135 exceptionFired = true; 87 136 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/ScrambleManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding; 22 23 using HeuristicLab.Tests; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 25 25 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {26 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 26 27 /// <summary> 27 28 ///This is a test class for ScrambleManipulator and is intended … … 30 31 [TestClass()] 31 32 public class ScrambleManipulatorTest { 33 34 35 private TestContext testContextInstance; 36 37 /// <summary> 38 ///Gets or sets the test context which provides 39 ///information about and functionality for the current test run. 40 ///</summary> 41 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 48 } 49 50 #region Additional test attributes 51 // 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 class 55 //[ClassInitialize()] 56 //public static void MyClassInitialize(TestContext testContext) 57 //{ 58 //} 59 // 60 //Use ClassCleanup to run code after all tests in a class have run 61 //[ClassCleanup()] 62 //public static void MyClassCleanup() 63 //{ 64 //} 65 // 66 //Use TestInitialize to run code before running each test 67 //[TestInitialize()] 68 //public void MyTestInitialize() 69 //{ 70 //} 71 // 72 //Use TestCleanup to run code after each test has run 73 //[TestCleanup()] 74 //public void MyTestCleanup() 75 //{ 76 //} 77 // 78 #endregion 79 80 32 81 /// <summary> 33 82 ///A test for Apply 34 83 ///</summary> 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 84 [TestMethod()] 38 85 public void ScrambleManipulatorApplyTest() { 39 86 TestRandom random = new TestRandom(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/Swap2ManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding; 22 23 using HeuristicLab.Tests; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 25 25 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {26 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 26 27 /// <summary> 27 28 ///This is a test class for Swap2Manipulator and is intended … … 30 31 [TestClass()] 31 32 public class Swap2ManipulatorTest { 33 34 35 private TestContext testContextInstance; 36 37 /// <summary> 38 ///Gets or sets the test context which provides 39 ///information about and functionality for the current test run. 40 ///</summary> 41 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 48 } 49 50 #region Additional test attributes 51 // 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 class 55 //[ClassInitialize()] 56 //public static void MyClassInitialize(TestContext testContext) 57 //{ 58 //} 59 // 60 //Use ClassCleanup to run code after all tests in a class have run 61 //[ClassCleanup()] 62 //public static void MyClassCleanup() 63 //{ 64 //} 65 // 66 //Use TestInitialize to run code before running each test 67 //[TestInitialize()] 68 //public void MyTestInitialize() 69 //{ 70 //} 71 // 72 //Use TestCleanup to run code after each test has run 73 //[TestCleanup()] 74 //public void MyTestCleanup() 75 //{ 76 //} 77 // 78 #endregion 79 80 32 81 /// <summary> 33 82 ///A test for Apply 34 83 ///</summary> 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 84 [TestMethod()] 38 85 public void Swap2ManipulatorApplyTest() { 39 86 TestRandom random = new TestRandom(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/Swap3ManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding; 22 23 using HeuristicLab.Tests; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 25 25 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {26 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 26 27 /// <summary> 27 28 ///This is a test class for Swap3Manipulator and is intended … … 30 31 [TestClass()] 31 32 public class Swap3ManipulatorTest { 33 34 35 private TestContext testContextInstance; 36 37 /// <summary> 38 ///Gets or sets the test context which provides 39 ///information about and functionality for the current test run. 40 ///</summary> 41 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 48 } 49 50 #region Additional test attributes 51 // 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 class 55 //[ClassInitialize()] 56 //public static void MyClassInitialize(TestContext testContext) 57 //{ 58 //} 59 // 60 //Use ClassCleanup to run code after all tests in a class have run 61 //[ClassCleanup()] 62 //public static void MyClassCleanup() 63 //{ 64 //} 65 // 66 //Use TestInitialize to run code before running each test 67 //[TestInitialize()] 68 //public void MyTestInitialize() 69 //{ 70 //} 71 // 72 //Use TestCleanup to run code after each test has run 73 //[TestCleanup()] 74 //public void MyTestCleanup() 75 //{ 76 //} 77 // 78 #endregion 79 80 32 81 /// <summary> 33 82 ///A test for Apply 34 83 ///</summary> 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 84 [TestMethod()] 38 85 public void Swap3ManipulatorApplyTest() { 39 86 TestRandom random = new TestRandom(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/TranslocationInversionManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding; 22 23 using HeuristicLab.Tests; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 25 25 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {26 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 26 27 /// <summary> 27 28 ///This is a test class for TranslocationInversionManipulator and is intended … … 30 31 [TestClass()] 31 32 public class TranslocationInversionManipulatorTest { 33 34 35 private TestContext testContextInstance; 36 37 /// <summary> 38 ///Gets or sets the test context which provides 39 ///information about and functionality for the current test run. 40 ///</summary> 41 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 48 } 49 50 #region Additional test attributes 51 // 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 class 55 //[ClassInitialize()] 56 //public static void MyClassInitialize(TestContext testContext) 57 //{ 58 //} 59 // 60 //Use ClassCleanup to run code after all tests in a class have run 61 //[ClassCleanup()] 62 //public static void MyClassCleanup() 63 //{ 64 //} 65 // 66 //Use TestInitialize to run code before running each test 67 //[TestInitialize()] 68 //public void MyTestInitialize() 69 //{ 70 //} 71 // 72 //Use TestCleanup to run code after each test has run 73 //[TestCleanup()] 74 //public void MyTestCleanup() 75 //{ 76 //} 77 // 78 #endregion 79 80 32 81 /// <summary> 33 82 ///A test for Apply 34 83 ///</summary> 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 84 [TestMethod()] 38 85 public void TranslocationInversionManipulatorApplyTest() { 39 86 TestRandom random = new TestRandom(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/TranslocationManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding; 22 23 using HeuristicLab.Tests; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 25 25 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {26 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 26 27 /// <summary> 27 28 ///This is a test class for TranslocationManipulator and is intended … … 30 31 [TestClass()] 31 32 public class TranslocationManipulatorTest { 33 34 35 private TestContext testContextInstance; 36 37 /// <summary> 38 ///Gets or sets the test context which provides 39 ///information about and functionality for the current test run. 40 ///</summary> 41 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 48 } 49 50 #region Additional test attributes 51 // 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 class 55 //[ClassInitialize()] 56 //public static void MyClassInitialize(TestContext testContext) 57 //{ 58 //} 59 // 60 //Use ClassCleanup to run code after all tests in a class have run 61 //[ClassCleanup()] 62 //public static void MyClassCleanup() 63 //{ 64 //} 65 // 66 //Use TestInitialize to run code before running each test 67 //[TestInitialize()] 68 //public void MyTestInitialize() 69 //{ 70 //} 71 // 72 //Use TestCleanup to run code after each test has run 73 //[TestCleanup()] 74 //public void MyTestCleanup() 75 //{ 76 //} 77 // 78 #endregion 79 80 32 81 /// <summary> 33 82 ///A test for Apply 34 83 ///</summary> 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 84 [TestMethod()] 38 85 public void TranslocationManipulatorApplyTest() { 39 86 TestRandom random = new TestRandom(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/UniformLikeCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests { 27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 28 29 27 30 /// <summary> 28 31 ///This is a test class for UniformLikeCrossoverTest and is intended … … 31 34 [TestClass()] 32 35 public class UniformLikeCrossoverTest { 36 37 38 private TestContext testContextInstance; 39 40 /// <summary> 41 ///Gets or sets the test context which provides 42 ///information about and functionality for the current test run. 43 ///</summary> 44 public TestContext TestContext { 45 get { 46 return testContextInstance; 47 } 48 set { 49 testContextInstance = value; 50 } 51 } 52 53 #region Additional test attributes 54 // 55 //You can use the following additional attributes as you write your tests: 56 // 57 //Use ClassInitialize to run code before running the first test in the class 58 //[ClassInitialize()] 59 //public static void MyClassInitialize(TestContext testContext) 60 //{ 61 //} 62 // 63 //Use ClassCleanup to run code after all tests in a class have run 64 //[ClassCleanup()] 65 //public static void MyClassCleanup() 66 //{ 67 //} 68 // 69 //Use TestInitialize to run code before running each test 70 //[TestInitialize()] 71 //public void MyTestInitialize() 72 //{ 73 //} 74 // 75 //Use TestCleanup to run code after each test has run 76 //[TestCleanup()] 77 //public void MyTestCleanup() 78 //{ 79 //} 80 // 81 #endregion 82 83 33 84 /// <summary> 34 85 ///A test for Apply 35 86 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 [TestMethod()] 39 88 public void UniformLikeCrossoverApplyTest() { 40 89 // test from the paper … … 58 107 ///A test for Cross 59 108 ///</summary> 60 [TestMethod] 61 [TestCategory("Encodings.Permutation")] 62 [TestProperty("Time", "short")] 109 [TestMethod()] 110 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 63 111 public void UniformLikeCrossoverCrossTest() { 64 112 UniformLikeCrossover_Accessor target = new UniformLikeCrossover_Accessor();
Note: See TracChangeset
for help on using the changeset viewer.