Changeset 9777
- Timestamp:
- 07/26/13 13:25:19 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/Auxiliary.cs ¶
r9764 r9777 20 20 #endregion 21 21 22 23 22 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 24 23 public static class Auxiliary { -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/NPointCrossoverTest.cs ¶
r9765 r9777 26 26 27 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 28 29 30 28 /// <summary> 31 29 ///This is a test class for SinglePointCrossoverTest and is intended … … 34 32 [TestClass()] 35 33 public class NPointCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 34 /// <summary> 84 35 ///A test for Cross 85 36 ///</summary> 86 37 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")] 38 [TestCategory("Encodings.BinaryVector")] 39 [TestProperty("Time", "short")] 88 40 public void NPointCrossoverCrossTest() { 89 41 NPointCrossover_Accessor target = new NPointCrossover_Accessor(new PrivateObject(typeof(NPointCrossover))); … … 119 71 ///</summary> 120 72 [TestMethod] 73 [TestCategory("Encodings.BinaryVector")] 74 [TestProperty("Time", "short")] 121 75 public void NPointCrossoverApplyTest() { 122 76 TestRandom random = new TestRandom(); … … 167 121 Assert.IsTrue(exceptionFired); 168 122 } 169 170 /// <summary>171 ///A test for SinglePointCrossover Constructor172 ///</summary>173 [TestMethod]174 public void NPointCrossoverConstructorTest() {175 NPointCrossover target = new NPointCrossover();176 }177 123 } 178 124 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePointCrossoverTest.cs ¶
r9765 r9777 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.BinaryVectorEncoding;24 24 using HeuristicLab.Tests; 25 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 26 27 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 28 29 30 28 /// <summary> 31 29 ///This is a test class for SinglePointCrossoverTest and is intended … … 34 32 [TestClass()] 35 33 public class SinglePointCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 34 /// <summary> 84 35 ///A test for Cross 85 36 ///</summary> 86 37 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")] 38 [TestCategory("Encodings.BinaryVector")] 39 [TestProperty("Time", "short")] 88 40 public void SinglePointCrossoverCrossTest() { 89 41 SinglePointCrossover_Accessor target = new SinglePointCrossover_Accessor(new PrivateObject(typeof(SinglePointCrossover))); … … 98 50 BinaryVector actual; 99 51 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 52 } catch (ArgumentException) { 102 53 exceptionFired = true; 103 54 } … … 110 61 BinaryVector actual; 111 62 actual = target.Cross(random, parents); 112 } 113 catch (System.ArgumentException) { 63 } catch (ArgumentException) { 114 64 exceptionFired = true; 115 65 } 116 66 Assert.IsTrue(exceptionFired); 117 67 } 118 119 /// <summary>120 ///A test for SinglePointCrossover Constructor121 ///</summary>122 [TestMethod]123 public void SinglePointCrossoverConstructorTest() {124 SinglePointCrossover target = new SinglePointCrossover();125 }126 68 } 127 69 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePositionBitflipManipulatorTest.cs ¶
r9765 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.BinaryVectorEncoding;23 22 using HeuristicLab.Tests; 24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 31 30 [TestClass()] 32 31 public class SinglePositionBitflipManipulatorTest { 33 34 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 public TestContext TestContext {42 get {43 return testContextInstance;44 }45 set {46 testContextInstance = value;47 }48 }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 //}59 //60 //Use ClassCleanup to run code after all tests in a class have run61 //[ClassCleanup()]62 //public static void MyClassCleanup()63 //{64 //}65 //66 //Use TestInitialize to run code before running each test67 //[TestInitialize()]68 //public void MyTestInitialize()69 //{70 //}71 //72 //Use TestCleanup to run code after each test has run73 //[TestCleanup()]74 //public void MyTestCleanup()75 //{76 //}77 //78 #endregion79 80 81 32 /// <summary> 82 33 ///A test for Apply 83 34 ///</summary> 84 35 [TestMethod] 36 [TestCategory("Encodings.BinaryVector")] 37 [TestProperty("Time", "short")] 85 38 public void SinglePositionBitflipManipulatorApplyTest() { 86 39 TestRandom random = new TestRandom(); … … 96 49 Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(expected, parent)); 97 50 } 98 99 /// <summary>100 ///A test for SinglePositionBitflipManipulator Constructor101 ///</summary>102 [TestMethod]103 public void SinglePositionBitflipManipulatorConstructorTest() {104 SinglePositionBitflipManipulator target = new SinglePositionBitflipManipulator();105 }106 51 } 107 52 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SomePositionsBitflipManipulatorTest.cs ¶
r9765 r9777 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.BinaryVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class SomePositionsBitflipManipulatorTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Apply 84 35 ///</summary> 85 36 [TestMethod] 37 [TestCategory("Encodings.BinaryVector")] 38 [TestProperty("Time", "short")] 86 39 public void SomePositionsBitflipManipulatorApplyTest() { 87 40 TestRandom random = new TestRandom(); … … 97 50 Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(expected, parent)); 98 51 } 99 100 /// <summary>101 ///A test for SomePositionsBitflipManipulator Constructor102 ///</summary>103 [TestMethod]104 public void SomePositionsBitflipManipulatorConstructorTest() {105 SomePositionsBitflipManipulator target = new SomePositionsBitflipManipulator();106 }107 52 } 108 53 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/UniformCrossoverTest.cs ¶
r9765 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.BinaryVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for SinglePointCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class UniformCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 33 /// <summary> 84 34 ///A test for Cross 85 35 ///</summary> 86 36 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")] 37 [TestCategory("Encodings.BinaryVector")] 38 [TestProperty("Time", "short")] 88 39 public void SinglePointCrossoverCrossTest() { 89 40 UniformCrossover_Accessor target = new UniformCrossover_Accessor(new PrivateObject(typeof(UniformCrossover))); … … 98 49 BinaryVector actual; 99 50 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 51 } catch (System.ArgumentException) { 102 52 exceptionFired = true; 103 53 } … … 110 60 BinaryVector actual; 111 61 actual = target.Cross(random, parents); 112 } 113 catch (System.ArgumentException) { 62 } catch (System.ArgumentException) { 114 63 exceptionFired = true; 115 64 } … … 121 70 ///</summary> 122 71 [TestMethod] 72 [TestCategory("Encodings.BinaryVector")] 73 [TestProperty("Time", "short")] 123 74 public void SinglePointCrossoverApplyTest() { 124 75 TestRandom random = new TestRandom(); … … 151 102 try { 152 103 actual = UniformCrossover.Apply(random, parent1, parent2); 153 } 154 catch (System.ArgumentException) { 104 } catch (System.ArgumentException) { 155 105 exceptionFired = true; 156 106 } 157 107 Assert.IsTrue(exceptionFired); 158 108 } 159 160 /// <summary>161 ///A test for SinglePointCrossover Constructor162 ///</summary>163 [TestMethod]164 public void SinglePointCrossoverConstructorTest() {165 NPointCrossover target = new NPointCrossover();166 }167 109 } 168 110 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.IntegerVectorEncoding-3.3/Auxiliary.cs ¶
r9764 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.IntegerVectorEncoding;23 24 22 namespace HeuristicLab.Encodings.IntegerVectorEncoding.Tests { 25 23 public static class Auxiliary { -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.IntegerVectorEncoding-3.3/DiscreteCrossoverTest.cs ¶
r9766 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.IntegerVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.IntegerVectorEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for DiscreteCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class DiscreteCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 33 /// <summary> 84 34 ///A test for Cross 85 35 ///</summary> 86 36 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.IntegerVectorEncoding-3.3.dll")] 37 [TestCategory("Encodings.IntegerVector")] 38 [TestProperty("Time", "short")] 88 39 public void DiscreteCrossoverCrossTest() { 89 40 DiscreteCrossover_Accessor target = new DiscreteCrossover_Accessor(new PrivateObject(typeof(DiscreteCrossover))); … … 98 49 IntegerVector actual; 99 50 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 51 } catch (System.ArgumentException) { 102 52 exceptionFired = true; 103 53 } … … 109 59 ///</summary> 110 60 [TestMethod] 61 [TestCategory("Encodings.IntegerVector")] 62 [TestProperty("Time", "short")] 111 63 public void DiscreteCrossoverApplyTest() { 112 64 TestRandom random = new TestRandom(); … … 130 82 try { 131 83 actual = DiscreteCrossover.Apply(random, new ItemArray<IntegerVector>(new IntegerVector[] { parent1, parent2 })); 132 } 133 catch (System.ArgumentException) { 84 } catch (System.ArgumentException) { 134 85 exceptionFired = true; 135 86 } 136 87 Assert.IsTrue(exceptionFired); 137 88 } 138 139 /// <summary>140 ///A test for DiscreteCrossover Constructor141 ///</summary>142 [TestMethod]143 public void DiscreteCrossoverConstructorTest() {144 DiscreteCrossover target = new DiscreteCrossover();145 }146 89 } 147 90 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.IntegerVectorEncoding-3.3/SinglePointCrossoverTest.cs ¶
r9766 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.IntegerVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.IntegerVectorEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for SinglePointCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class SinglePointCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 33 /// <summary> 84 34 ///A test for Cross 85 35 ///</summary> 86 36 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.IntegerVectorEncoding-3.3.dll")] 37 [TestCategory("Encodings.IntegerVector")] 38 [TestProperty("Time", "short")] 88 39 public void SinglePointCrossoverCrossTest() { 89 40 SinglePointCrossover_Accessor target = new SinglePointCrossover_Accessor(new PrivateObject(typeof(SinglePointCrossover))); … … 98 49 IntegerVector actual; 99 50 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 51 } catch (System.ArgumentException) { 102 52 exceptionFired = true; 103 53 } … … 110 60 IntegerVector actual; 111 61 actual = target.Cross(random, parents); 112 } 113 catch (System.ArgumentException) { 62 } catch (System.ArgumentException) { 114 63 exceptionFired = true; 115 64 } … … 121 70 ///</summary> 122 71 [TestMethod] 72 [TestCategory("Encodings.IntegerVector")] 73 [TestProperty("Time", "short")] 123 74 public void SinglePointCrossoverApplyTest() { 124 75 TestRandom random = new TestRandom(); … … 141 92 try { 142 93 actual = SinglePointCrossover.Apply(random, parent1, parent2); 143 } 144 catch (System.ArgumentException) { 94 } catch (System.ArgumentException) { 145 95 exceptionFired = true; 146 96 } 147 97 Assert.IsTrue(exceptionFired); 148 98 } 149 150 /// <summary>151 ///A test for SinglePointCrossover Constructor152 ///</summary>153 [TestMethod]154 public void SinglePointCrossoverConstructorTest() {155 SinglePointCrossover target = new SinglePointCrossover();156 }157 99 } 158 100 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.IntegerVectorEncoding-3.3/UniformOnePositionManipulatorTest.cs ¶
r9766 r9777 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.IntegerVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class UniformOnePositionManipulatorTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Apply 84 35 ///</summary> 85 [TestMethod] 36 [TestMethod()] 37 [TestCategory("Encodings.IntegerVector")] 38 [TestProperty("Time", "short")] 86 39 public void UniformOnePositionManipulatorApplyTest() { 87 40 TestRandom random = new TestRandom(); … … 98 51 Assert.IsTrue(Auxiliary.IntegerVectorIsEqualByPosition(expected, parent)); 99 52 } 100 101 /// <summary>102 ///A test for UniformOnePositionManipulator Constructor103 ///</summary>104 [TestMethod]105 public void UniformOnePositionManipulatorConstructorTest() {106 UniformOnePositionManipulator target = new UniformOnePositionManipulator();107 }108 53 } 109 54 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/Auxiliary.cs ¶
r9764 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 24 22 namespace HeuristicLab.Encodings.PermutationEncoding.Tests { 25 23 public static class Auxiliary { -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CosaCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class CosaCrossoverTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void CosaCrossoverCrossTest() { 88 40 TestRandom random = new TestRandom(); … … 95 47 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 96 48 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 97 } 98 catch (System.InvalidOperationException) { 49 } catch (System.InvalidOperationException) { 99 50 exceptionFired = true; 100 51 } … … 106 57 ///</summary> 107 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 108 61 public void CosaCrossoverApplyTest() { 109 62 TestRandom random = new TestRandom(); … … 151 104 try { 152 105 CosaCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 153 } 154 catch (System.ArgumentException) { 106 } catch (System.ArgumentException) { 155 107 exceptionFired = true; 156 108 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CyclicCrossover2Test.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class CyclicCrossover2Test { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void CyclicCrossover2CrossTest() { 88 40 TestRandom random = new TestRandom(); … … 94 46 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 95 47 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 96 } 97 catch (System.InvalidOperationException) { 48 } catch (System.InvalidOperationException) { 98 49 exceptionFired = true; 99 50 } … … 105 56 ///</summary> 106 57 [TestMethod] 58 [TestCategory("Encodings.Permutation")] 59 [TestProperty("Time", "short")] 107 60 public void CyclicCrossover2ApplyTest() { 108 61 TestRandom random = new TestRandom(); … … 126 79 try { 127 80 CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 128 } 129 catch (System.ArgumentException) { 81 } catch (System.ArgumentException) { 130 82 exceptionFired = true; 131 83 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CyclicCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class CyclicCrossoverTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void CyclicCrossoverCrossTest() { 88 40 TestRandom random = new TestRandom(); … … 95 47 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 96 48 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 97 } 98 catch (System.InvalidOperationException) { 49 } catch (System.InvalidOperationException) { 99 50 exceptionFired = true; 100 51 } … … 106 57 ///</summary> 107 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 108 61 public void CyclicCrossoverApplyTest() { 109 62 TestRandom random = new TestRandom(); … … 127 80 try { 128 81 CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 129 } 130 catch (System.ArgumentException) { 82 } catch (System.ArgumentException) { 131 83 exceptionFired = true; 132 84 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/EdgeRecombinationCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class EdgeRecombinationCrossoverTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void EdgeRecombinationCrossoverCrossoverCrossTest() { 88 40 TestRandom random = new TestRandom(); … … 95 47 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 96 48 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 97 } 98 catch (System.InvalidOperationException) { 49 } catch (System.InvalidOperationException) { 99 50 exceptionFired = true; 100 51 } … … 106 57 ///</summary> 107 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 108 61 public void EdgeRecombinationCrossoverApplyTest() { 109 62 TestRandom random = new TestRandom(); … … 128 81 try { 129 82 EdgeRecombinationCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 130 } 131 catch (System.ArgumentException) { 83 } catch (System.ArgumentException) { 132 84 exceptionFired = true; 133 85 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/InsertionManipulatorTest.cs ¶
r9767 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 22 using HeuristicLab.Tests; 24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 31 30 [TestClass()] 32 31 public class InsertionManipulatorTest { 33 34 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 public TestContext TestContext {42 get {43 return testContextInstance;44 }45 set {46 testContextInstance = value;47 }48 }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 //}59 //60 //Use ClassCleanup to run code after all tests in a class have run61 //[ClassCleanup()]62 //public static void MyClassCleanup()63 //{64 //}65 //66 //Use TestInitialize to run code before running each test67 //[TestInitialize()]68 //public void MyTestInitialize()69 //{70 //}71 //72 //Use TestCleanup to run code after each test has run73 //[TestCleanup()]74 //public void MyTestCleanup()75 //{76 //}77 //78 #endregion79 80 81 32 /// <summary> 82 33 ///A test for Apply 83 34 ///</summary> 84 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 85 38 public void InsertionManipulatorApplyTest() { 86 39 TestRandom random = new TestRandom(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/InversionManipulatorTest.cs ¶
r9767 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 22 using HeuristicLab.Tests; 24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 31 30 [TestClass()] 32 31 public class InversionManipulatorTest { 33 34 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 public TestContext TestContext {42 get {43 return testContextInstance;44 }45 set {46 testContextInstance = value;47 }48 }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 //}59 //60 //Use ClassCleanup to run code after all tests in a class have run61 //[ClassCleanup()]62 //public static void MyClassCleanup()63 //{64 //}65 //66 //Use TestInitialize to run code before running each test67 //[TestInitialize()]68 //public void MyTestInitialize()69 //{70 //}71 //72 //Use TestCleanup to run code after each test has run73 //[TestCleanup()]74 //public void MyTestCleanup()75 //{76 //}77 //78 #endregion79 80 81 32 /// <summary> 82 33 ///A test for Apply 83 34 ///</summary> 84 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 85 38 public void InversionManipulatorApplyTest() { 86 39 TestRandom random = new TestRandom(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/MaximalPreservativeCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class MaximalPreservativeCrossoverTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void MaximalPreservativeCrossoverCrossTest() { 88 40 TestRandom random = new TestRandom(); … … 95 47 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 96 48 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 97 } 98 catch (System.InvalidOperationException) { 49 } catch (System.InvalidOperationException) { 99 50 exceptionFired = true; 100 51 } … … 106 57 ///</summary> 107 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 108 61 public void MaximalPreservativeCrossoverApplyTest() { 109 62 TestRandom random = new TestRandom(); … … 127 80 try { 128 81 MaximalPreservativeCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 129 } 130 catch (System.ArgumentException) { 82 } catch (System.ArgumentException) { 131 83 exceptionFired = true; 132 84 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderBasedCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class OrderBasedCrossoverTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void OrderBasedCrossoverCrossTest() { 88 40 TestRandom random = new TestRandom(); … … 95 47 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 96 48 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 97 } 98 catch (System.InvalidOperationException) { 49 } catch (System.InvalidOperationException) { 99 50 exceptionFired = true; 100 51 } … … 106 57 ///</summary> 107 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 108 61 public void OrderBasedCrossoverApplyTest() { 109 62 TestRandom random = new TestRandom(); … … 125 78 try { 126 79 OrderBasedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 127 } 128 catch (System.ArgumentException) { 80 } catch (System.ArgumentException) { 129 81 exceptionFired = true; 130 82 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderCrossover2Test.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class OrderCrossover2Test { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void OrderCrossover2CrossTest() { 88 40 TestRandom random = new TestRandom(); … … 93 45 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 94 46 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 95 } 96 catch (System.InvalidOperationException) { 47 } catch (System.InvalidOperationException) { 97 48 exceptionFired = true; 98 49 } … … 104 55 ///</summary> 105 56 [TestMethod] 57 [TestCategory("Encodings.Permutation")] 58 [TestProperty("Time", "short")] 106 59 public void OrderCrossover2ApplyTest() { 107 60 TestRandom random = new TestRandom(); … … 125 78 try { 126 79 OrderCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 127 } 128 catch (System.ArgumentException) { 80 } catch (System.ArgumentException) { 129 81 exceptionFired = true; 130 82 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class OrderCrossoverTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void OrderCrossoverCrossTest() { 88 40 TestRandom random = new TestRandom(); … … 95 47 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 96 48 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 97 } 98 catch (System.InvalidOperationException) { 49 } catch (System.InvalidOperationException) { 99 50 exceptionFired = true; 100 51 } … … 106 57 ///</summary> 107 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 108 61 public void OrderCrossoverApplyTest() { 109 62 TestRandom random = new TestRandom(); … … 178 131 try { 179 132 OrderCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 180 } 181 catch (System.ArgumentException) { 133 } catch (System.ArgumentException) { 182 134 exceptionFired = true; 183 135 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PartiallyMatchedCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class PartiallyMatchedCrossoverTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void PartiallyMatchedCrossTest() { 88 40 TestRandom random = new TestRandom(); … … 95 47 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 96 48 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 97 } 98 catch (System.InvalidOperationException) { 49 } catch (System.InvalidOperationException) { 99 50 exceptionFired = true; 100 51 } … … 106 57 ///</summary> 107 58 [TestMethod] 59 [TestCategory("Encodings.Permutation")] 60 [TestProperty("Time", "short")] 108 61 public void PartiallyMatchedCrossoverApplyTest() { 109 62 TestRandom random = new TestRandom(); … … 139 92 try { 140 93 PartiallyMatchedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 141 } 142 catch (System.ArgumentException) { 94 } catch (System.ArgumentException) { 143 95 exceptionFired = true; 144 96 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PermutationEqualityComparerTest.cs ¶
r9764 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 22 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 23 … … 27 26 public class PermutationEqualityComparerTest { 28 27 [TestMethod] 28 [TestCategory("Encodings.Permutation")] 29 [TestProperty("Time", "short")] 29 30 public void TestPermutationEqualityComparer() { 30 31 PermutationEqualityComparer comparer = new PermutationEqualityComparer(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PositionBasedCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class PositionBasedCrossoverTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Cross 84 35 ///</summary> 85 36 [TestMethod] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 87 39 public void PositionBasedCrossoverCrossTest() { 88 40 TestRandom random = new TestRandom(); … … 96 48 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 97 49 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4) })); 98 } 99 catch (System.InvalidOperationException) { 50 } catch (System.InvalidOperationException) { 100 51 exceptionFired = true; 101 52 } … … 107 58 ///</summary> 108 59 [TestMethod] 109 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 60 [TestCategory("Encodings.Permutation")] 61 [TestProperty("Time", "short")] 110 62 public void PositionBasedCrossoverApplyTest() { 111 63 TestRandom random = new TestRandom(); … … 131 83 try { 132 84 PositionBasedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 133 } 134 catch (System.ArgumentException) { 85 } catch (System.ArgumentException) { 135 86 exceptionFired = true; 136 87 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/ScrambleManipulatorTest.cs ¶
r9767 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 22 using HeuristicLab.Tests; 24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 31 30 [TestClass()] 32 31 public class ScrambleManipulatorTest { 33 34 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 public TestContext TestContext {42 get {43 return testContextInstance;44 }45 set {46 testContextInstance = value;47 }48 }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 //}59 //60 //Use ClassCleanup to run code after all tests in a class have run61 //[ClassCleanup()]62 //public static void MyClassCleanup()63 //{64 //}65 //66 //Use TestInitialize to run code before running each test67 //[TestInitialize()]68 //public void MyTestInitialize()69 //{70 //}71 //72 //Use TestCleanup to run code after each test has run73 //[TestCleanup()]74 //public void MyTestCleanup()75 //{76 //}77 //78 #endregion79 80 81 32 /// <summary> 82 33 ///A test for Apply 83 34 ///</summary> 84 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 85 38 public void ScrambleManipulatorApplyTest() { 86 39 TestRandom random = new TestRandom(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/Swap2ManipulatorTest.cs ¶
r9767 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 22 using HeuristicLab.Tests; 24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 31 30 [TestClass()] 32 31 public class Swap2ManipulatorTest { 33 34 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 public TestContext TestContext {42 get {43 return testContextInstance;44 }45 set {46 testContextInstance = value;47 }48 }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 //}59 //60 //Use ClassCleanup to run code after all tests in a class have run61 //[ClassCleanup()]62 //public static void MyClassCleanup()63 //{64 //}65 //66 //Use TestInitialize to run code before running each test67 //[TestInitialize()]68 //public void MyTestInitialize()69 //{70 //}71 //72 //Use TestCleanup to run code after each test has run73 //[TestCleanup()]74 //public void MyTestCleanup()75 //{76 //}77 //78 #endregion79 80 81 32 /// <summary> 82 33 ///A test for Apply 83 34 ///</summary> 84 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 85 38 public void Swap2ManipulatorApplyTest() { 86 39 TestRandom random = new TestRandom(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/Swap3ManipulatorTest.cs ¶
r9767 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 22 using HeuristicLab.Tests; 24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 31 30 [TestClass()] 32 31 public class Swap3ManipulatorTest { 33 34 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 public TestContext TestContext {42 get {43 return testContextInstance;44 }45 set {46 testContextInstance = value;47 }48 }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 //}59 //60 //Use ClassCleanup to run code after all tests in a class have run61 //[ClassCleanup()]62 //public static void MyClassCleanup()63 //{64 //}65 //66 //Use TestInitialize to run code before running each test67 //[TestInitialize()]68 //public void MyTestInitialize()69 //{70 //}71 //72 //Use TestCleanup to run code after each test has run73 //[TestCleanup()]74 //public void MyTestCleanup()75 //{76 //}77 //78 #endregion79 80 81 32 /// <summary> 82 33 ///A test for Apply 83 34 ///</summary> 84 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 85 38 public void Swap3ManipulatorApplyTest() { 86 39 TestRandom random = new TestRandom(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/TranslocationInversionManipulatorTest.cs ¶
r9767 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 22 using HeuristicLab.Tests; 24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 31 30 [TestClass()] 32 31 public class TranslocationInversionManipulatorTest { 33 34 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 public TestContext TestContext {42 get {43 return testContextInstance;44 }45 set {46 testContextInstance = value;47 }48 }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 //}59 //60 //Use ClassCleanup to run code after all tests in a class have run61 //[ClassCleanup()]62 //public static void MyClassCleanup()63 //{64 //}65 //66 //Use TestInitialize to run code before running each test67 //[TestInitialize()]68 //public void MyTestInitialize()69 //{70 //}71 //72 //Use TestCleanup to run code after each test has run73 //[TestCleanup()]74 //public void MyTestCleanup()75 //{76 //}77 //78 #endregion79 80 81 32 /// <summary> 82 33 ///A test for Apply 83 34 ///</summary> 84 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 85 38 public void TranslocationInversionManipulatorApplyTest() { 86 39 TestRandom random = new TestRandom(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/TranslocationManipulatorTest.cs ¶
r9767 r9777 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.PermutationEncoding;23 22 using HeuristicLab.Tests; 24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 31 30 [TestClass()] 32 31 public class TranslocationManipulatorTest { 33 34 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 public TestContext TestContext {42 get {43 return testContextInstance;44 }45 set {46 testContextInstance = value;47 }48 }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 //}59 //60 //Use ClassCleanup to run code after all tests in a class have run61 //[ClassCleanup()]62 //public static void MyClassCleanup()63 //{64 //}65 //66 //Use TestInitialize to run code before running each test67 //[TestInitialize()]68 //public void MyTestInitialize()69 //{70 //}71 //72 //Use TestCleanup to run code after each test has run73 //[TestCleanup()]74 //public void MyTestCleanup()75 //{76 //}77 //78 #endregion79 80 81 32 /// <summary> 82 33 ///A test for Apply 83 34 ///</summary> 84 35 [TestMethod] 36 [TestCategory("Encodings.Permutation")] 37 [TestProperty("Time", "short")] 85 38 public void TranslocationManipulatorApplyTest() { 86 39 TestRandom random = new TestRandom(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/UniformLikeCrossoverTest.cs ¶
r9767 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for UniformLikeCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class UniformLikeCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 84 33 /// <summary> 85 34 ///A test for Apply 86 35 ///</summary> 87 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 88 39 public void UniformLikeCrossoverApplyTest() { 89 40 // test from the paper … … 108 59 ///</summary> 109 60 [TestMethod] 61 [TestCategory("Encodings.Permutation")] 62 [TestProperty("Time", "short")] 110 63 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 111 64 public void UniformLikeCrossoverCrossTest() { -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/Auxiliary.cs ¶
r9764 r9777 21 21 22 22 using HeuristicLab.Common; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 25 24 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/BlendAlphaBetaCrossoverTest.cs ¶
r9768 r9777 26 26 27 27 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 29 30 28 /// <summary> 31 29 ///This is a test class for BlendAlphaBetaCrossoverTest and is intended … … 34 32 [TestClass()] 35 33 public class BlendAlphaBetaCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 34 /// <summary> 84 35 ///A test for Cross 85 36 ///</summary> 86 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 37 [TestMethod()] 38 [TestCategory("Encodings.RealVector")] 39 [TestProperty("Time", "short")] 88 40 public void BlendAlphaBetaCrossoverCrossTest() { 89 41 BlendAlphaBetaCrossover_Accessor target = new BlendAlphaBetaCrossover_Accessor(new PrivateObject(typeof(BlendAlphaBetaCrossover))); … … 118 70 ///A test for Apply 119 71 ///</summary> 120 [TestMethod] 72 [TestMethod()] 73 [TestCategory("Encodings.RealVector")] 74 [TestProperty("Time", "short")] 121 75 public void BlendAlphaBetaCrossoverApplyTest() { 122 76 TestRandom random = new TestRandom(); … … 162 116 Assert.IsTrue(exceptionFired); 163 117 } 164 165 /// <summary>166 ///A test for BlendAlphaBetaCrossover Constructor167 ///</summary>168 [TestMethod]169 public void BlendAlphaBetaCrossoverConstructorTest() {170 BlendAlphaBetaCrossover target = new BlendAlphaBetaCrossover();171 }172 118 } 173 119 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/BlendAlphaCrossoverTest.cs ¶
r9768 r9777 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Data; 24 using HeuristicLab.Encodings.RealVectorEncoding;25 24 using HeuristicLab.Tests; 26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 26 28 27 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 29 30 31 28 /// <summary> 32 29 ///This is a test class for BlendAlphaCrossoverTest and is intended … … 35 32 [TestClass()] 36 33 public class BlendAlphaCrossoverTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///information about and functionality for the current test run.44 ///</summary>45 public TestContext TestContext {46 get {47 return testContextInstance;48 }49 set {50 testContextInstance = value;51 }52 }53 54 #region Additional test attributes55 //56 //You can use the following additional attributes as you write your tests:57 //58 //Use ClassInitialize to run code before running the first test in the class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 34 /// <summary> 85 35 ///A test for Cross 86 36 ///</summary> 87 [TestMethod] 88 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 37 [TestMethod()] 38 [TestCategory("Encodings.RealVector")] 39 [TestProperty("Time", "short")] 89 40 public void BlendAlphaCrossoverCrossTest() { 90 41 BlendAlphaCrossover_Accessor target = new BlendAlphaCrossover_Accessor(new PrivateObject(typeof(BlendAlphaCrossover))); … … 99 50 RealVector actual; 100 51 actual = target.Cross(random, parents); 101 } 102 catch (System.ArgumentException) { 52 } catch (System.ArgumentException) { 103 53 exceptionFired = true; 104 54 } … … 111 61 RealVector actual; 112 62 actual = target.Cross(random, parents); 113 } 114 catch (System.ArgumentException) { 63 } catch (System.ArgumentException) { 115 64 exceptionFired = true; 116 65 } … … 121 70 ///A test for Apply 122 71 ///</summary> 123 [TestMethod] 72 [TestMethod()] 73 [TestCategory("Encodings.RealVector")] 74 [TestProperty("Time", "short")] 124 75 public void BlendAlphaCrossoverApplyTest() { 125 76 TestRandom random = new TestRandom(); … … 155 106 try { 156 107 actual = BlendAlphaCrossover.Apply(random, parent1, parent2, alpha); 157 } 158 catch (System.ArgumentException) { 108 } catch (System.ArgumentException) { 159 109 exceptionFired = true; 160 110 } … … 170 120 try { 171 121 actual = BlendAlphaCrossover.Apply(random, parent1, parent2, alpha); 172 } 173 catch (System.ArgumentException) { 122 } catch (System.ArgumentException) { 174 123 exceptionFired = true; 175 124 } 176 125 Assert.IsTrue(exceptionFired); 177 126 } 178 179 /// <summary>180 ///A test for BlendAlphaCrossover Constructor181 ///</summary>182 [TestMethod]183 public void BlendAlphaCrossoverConstructorTest() {184 BlendAlphaCrossover target = new BlendAlphaCrossover();185 }186 127 } 187 128 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/DiscreteCrossoverTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for DiscreteCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class DiscreteCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 33 /// <summary> 84 34 ///A test for Cross 85 35 ///</summary> 86 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 88 39 public void DiscreteCrossoverCrossTest() { 89 40 DiscreteCrossover_Accessor target = new DiscreteCrossover_Accessor(new PrivateObject(typeof(DiscreteCrossover))); … … 98 49 RealVector actual; 99 50 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 51 } catch (System.ArgumentException) { 102 52 exceptionFired = true; 103 53 } … … 108 58 ///A test for Apply 109 59 ///</summary> 110 [TestMethod] 60 [TestMethod()] 61 [TestCategory("Encodings.RealVector")] 62 [TestProperty("Time", "short")] 111 63 public void DiscreteCrossoverApplyTest() { 112 64 TestRandom random = new TestRandom(); … … 132 84 try { 133 85 actual = DiscreteCrossover.Apply(random, parents); 134 } 135 catch (System.ArgumentException) { 86 } catch (System.ArgumentException) { 136 87 exceptionFired = true; 137 88 } 138 89 Assert.IsTrue(exceptionFired); 139 90 } 140 141 /// <summary>142 ///A test for DiscreteCrossover Constructor143 ///</summary>144 [TestMethod]145 public void DiscreteCrossoverConstructorTest() {146 DiscreteCrossover target = new DiscreteCrossover();147 }148 91 } 149 92 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/HeuristicCrossoverTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for HeuristicCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class HeuristicCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 33 /// <summary> 84 34 ///A test for Cross 85 35 ///</summary> 86 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 88 39 public void HeuristicCrossoverCrossTest() { 89 40 HeuristicCrossover_Accessor target = new HeuristicCrossover_Accessor(new PrivateObject(typeof(HeuristicCrossover))); … … 98 49 RealVector actual; 99 50 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 51 } catch (System.ArgumentException) { 102 52 exceptionFired = true; 103 53 } … … 110 60 RealVector actual; 111 61 actual = target.Cross(random, parents); 112 } 113 catch (System.ArgumentException) { 62 } catch (System.ArgumentException) { 114 63 exceptionFired = true; 115 64 } … … 120 69 ///A test for Apply 121 70 ///</summary> 122 [TestMethod] 71 [TestMethod()] 72 [TestCategory("Encodings.RealVector")] 73 [TestProperty("Time", "short")] 123 74 public void HeuristicCrossoverApplyTest() { 124 75 TestRandom random = new TestRandom(); … … 141 92 try { 142 93 actual = HeuristicCrossover.Apply(random, parent1, parent2); 143 } 144 catch (System.ArgumentException) { 94 } catch (System.ArgumentException) { 145 95 exceptionFired = true; 146 96 } 147 97 Assert.IsTrue(exceptionFired); 148 98 } 149 150 /// <summary>151 ///A test for HeuristicCrossover Constructor152 ///</summary>153 [TestMethod]154 public void HeuristicCrossoverConstructorTest() {155 HeuristicCrossover target = new HeuristicCrossover();156 }157 99 } 158 100 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/LocalCrossoverTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for LocalCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class LocalCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 33 /// <summary> 84 34 ///A test for Cross 85 35 ///</summary> 86 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 88 39 public void LocalCrossoverCrossTest() { 89 40 LocalCrossover_Accessor target = new LocalCrossover_Accessor(new PrivateObject(typeof(LocalCrossover))); … … 98 49 RealVector actual; 99 50 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 51 } catch (System.ArgumentException) { 102 52 exceptionFired = true; 103 53 } … … 110 60 RealVector actual; 111 61 actual = target.Cross(random, parents); 112 } 113 catch (System.ArgumentException) { 62 } catch (System.ArgumentException) { 114 63 exceptionFired = true; 115 64 } … … 120 69 ///A test for Apply 121 70 ///</summary> 122 [TestMethod] 71 [TestMethod()] 72 [TestCategory("Encodings.RealVector")] 73 [TestProperty("Time", "short")] 123 74 public void LocalCrossoverApplyTest() { 124 75 TestRandom random = new TestRandom(); … … 141 92 try { 142 93 actual = LocalCrossover.Apply(random, parent1, parent2); 143 } 144 catch (System.ArgumentException) { 94 } catch (System.ArgumentException) { 145 95 exceptionFired = true; 146 96 } 147 97 Assert.IsTrue(exceptionFired); 148 98 } 149 150 /// <summary>151 ///A test for LocalCrossover Constructor152 ///</summary>153 [TestMethod]154 public void LocalCrossoverConstructorTest() {155 LocalCrossover target = new LocalCrossover();156 }157 99 } 158 100 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/MichalewiczNonUniformAllPositionsManipulatorTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class MichalewiczNonUniformAllPositionsManipulatorTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Apply 84 35 ///</summary> 85 [TestMethod] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 86 39 public void MichalewiczNonUniformAllPositionsManipulatorApplyTest() { 87 40 TestRandom random = new TestRandom(); … … 113 66 try { 114 67 MichalewiczNonUniformAllPositionsManipulator.Apply(random, parent, bounds, currentGeneration, maximumGenerations, generationsDependency); 115 } 116 catch (System.ArgumentException) { 68 } catch (System.ArgumentException) { 117 69 exceptionFired = true; 118 70 } 119 71 Assert.IsTrue(exceptionFired); 120 72 } 121 122 /// <summary>123 ///A test for MichalewiczNonUniformAllPositionsManipulator Constructor124 ///</summary>125 [TestMethod]126 public void MichalewiczNonUniformAllPositionsManipulatorConstructorTest() {127 MichalewiczNonUniformAllPositionsManipulator target = new MichalewiczNonUniformAllPositionsManipulator();128 }129 73 } 130 74 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/MichalewiczNonUniformOnePositionManipulatorTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class MichalewiczNonUniformOnePositionManipulatorTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Apply 84 35 ///</summary> 85 [TestMethod] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 86 39 public void MichalewiczNonUniformOnePositionManipulatorApplyTest() { 87 40 TestRandom random = new TestRandom(); … … 115 68 try { 116 69 MichalewiczNonUniformOnePositionManipulator.Apply(random, parent, bounds, currentGeneration, maximumGenerations, generationsDependency); 117 } 118 catch (System.ArgumentException) { 70 } catch (System.ArgumentException) { 119 71 exceptionFired = true; 120 72 } 121 73 Assert.IsTrue(exceptionFired); 122 74 } 123 124 /// <summary>125 ///A test for MichalewiczNonUniformOnePositionManipulator Constructor126 ///</summary>127 [TestMethod]128 public void MichalewiczNonUniformOnePositionManipulatorConstructorTest() {129 MichalewiczNonUniformOnePositionManipulator target = new MichalewiczNonUniformOnePositionManipulator();130 }131 75 } 132 76 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/PolynomialAllPositionManipulatorTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class PolynomialAllPositionManipulatorTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Apply 84 35 ///</summary> 85 [TestMethod] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 86 39 public void PolynomialAllPositionManipulatorApplyTest() { 87 40 TestRandom random = new TestRandom(); … … 112 65 Assert.IsTrue(exceptionFired); 113 66 } 114 115 /// <summary>116 ///A test for PolynomialAllPositionManipulator Constructor117 ///</summary>118 [TestMethod]119 public void PolynomialAllPositionManipulatorConstructorTest() {120 PolynomialAllPositionManipulator target = new PolynomialAllPositionManipulator();121 }122 67 } 123 68 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/PolynomialOnePositionManipulatorTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class PolynomialOnePositionManipulatorTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Apply 84 35 ///</summary> 85 [TestMethod] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 86 39 public void PolynomialOnePositionManipulatorApplyTest() { 87 40 TestRandom random = new TestRandom(); … … 109 62 try { 110 63 PolynomialOnePositionManipulator.Apply(random, parent, contiguity, maxManipulation); 111 } 112 catch (System.ArgumentException) { 64 } catch (System.ArgumentException) { 113 65 exceptionFired = true; 114 66 } 115 67 Assert.IsTrue(exceptionFired); 116 68 } 117 118 /// <summary>119 ///A test for PolynomialOnePositionManipulator Constructor120 ///</summary>121 [TestMethod]122 public void PolynomialOnePositionManipulatorConstructorTest() {123 PolynomialOnePositionManipulator target = new PolynomialOnePositionManipulator();124 }125 69 } 126 70 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/RandomConvexCrossoverTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for RandomConvexCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class RandomConvexCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 33 /// <summary> 84 34 ///A test for Cross 85 35 ///</summary> 86 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 88 39 public void RandomConvexCrossoverCrossTest() { 89 40 RandomConvexCrossover_Accessor target = new RandomConvexCrossover_Accessor(new PrivateObject(typeof(RandomConvexCrossover))); … … 98 49 RealVector actual; 99 50 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 51 } catch (System.ArgumentException) { 102 52 exceptionFired = true; 103 53 } … … 110 60 RealVector actual; 111 61 actual = target.Cross(random, parents); 112 } 113 catch (System.ArgumentException) { 62 } catch (System.ArgumentException) { 114 63 exceptionFired = true; 115 64 } … … 120 69 ///A test for Apply 121 70 ///</summary> 122 [TestMethod] 71 [TestMethod()] 72 [TestCategory("Encodings.RealVector")] 73 [TestProperty("Time", "short")] 123 74 public void RandomConvexCrossoverApplyTest() { 124 75 TestRandom random = new TestRandom(); … … 141 92 try { 142 93 actual = RandomConvexCrossover.Apply(random, parent1, parent2); 143 } 144 catch (System.ArgumentException) { 94 } catch (System.ArgumentException) { 145 95 exceptionFired = true; 146 96 } 147 97 Assert.IsTrue(exceptionFired); 148 98 } 149 150 /// <summary>151 ///A test for RandomConvexCrossover Constructor152 ///</summary>153 [TestMethod]154 public void RandomConvexCrossoverConstructorTest() {155 RandomConvexCrossover target = new RandomConvexCrossover();156 }157 99 } 158 100 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/SimulatedBinaryCrossoverTest.cs ¶
r9768 r9777 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Data; 24 using HeuristicLab.Encodings.RealVectorEncoding;25 24 using HeuristicLab.Tests; 26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 26 28 27 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 29 30 31 28 /// <summary> 32 29 ///This is a test class for SimulatedBinaryCrossoverTest and is intended … … 35 32 [TestClass()] 36 33 public class SimulatedBinaryCrossoverTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///information about and functionality for the current test run.44 ///</summary>45 public TestContext TestContext {46 get {47 return testContextInstance;48 }49 set {50 testContextInstance = value;51 }52 }53 54 #region Additional test attributes55 //56 //You can use the following additional attributes as you write your tests:57 //58 //Use ClassInitialize to run code before running the first test in the class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 34 /// <summary> 85 35 ///A test for Cross 86 36 ///</summary> 87 [TestMethod] 88 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 37 [TestMethod()] 38 [TestCategory("Encodings.RealVector")] 39 [TestProperty("Time", "short")] 89 40 public void SimulatedBinaryCrossoverCrossTest() { 90 41 SimulatedBinaryCrossover_Accessor target = new SimulatedBinaryCrossover_Accessor(new PrivateObject(typeof(SimulatedBinaryCrossover))); … … 119 70 ///A test for Apply 120 71 ///</summary> 121 [TestMethod] 72 [TestMethod()] 73 [TestCategory("Encodings.RealVector")] 74 [TestProperty("Time", "short")] 122 75 public void SimulatedBinaryCrossoverApplyTest() { 123 76 TestRandom random = new TestRandom(); … … 161 114 Assert.IsTrue(exceptionFired); 162 115 } 163 164 /// <summary>165 ///A test for SimulatedBinaryCrossover Constructor166 ///</summary>167 [TestMethod]168 public void SimulatedBinaryCrossoverConstructorTest() {169 SimulatedBinaryCrossover target = new SimulatedBinaryCrossover();170 }171 116 } 172 117 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/SinglePointCrossoverTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 29 30 27 /// <summary> 31 28 ///This is a test class for SinglePointCrossoverTest and is intended … … 34 31 [TestClass()] 35 32 public class SinglePointCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 attributes54 //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 class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 33 /// <summary> 84 34 ///A test for Cross 85 35 ///</summary> 86 [TestMethod] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 88 39 public void SinglePointCrossoverCrossTest() { 89 40 SinglePointCrossover_Accessor target = new SinglePointCrossover_Accessor(new PrivateObject(typeof(SinglePointCrossover))); … … 98 49 RealVector actual; 99 50 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 51 } catch (System.ArgumentException) { 102 52 exceptionFired = true; 103 53 } … … 110 60 RealVector actual; 111 61 actual = target.Cross(random, parents); 112 } 113 catch (System.ArgumentException) { 62 } catch (System.ArgumentException) { 114 63 exceptionFired = true; 115 64 } … … 122 71 RealVector actual; 123 72 actual = target.Cross(random, parents); 124 } 125 catch (System.ArgumentException) { 73 } catch (System.ArgumentException) { 126 74 exceptionFired = true; 127 75 } … … 132 80 ///A test for Apply 133 81 ///</summary> 134 [TestMethod] 82 [TestMethod()] 83 [TestCategory("Encodings.RealVector")] 84 [TestProperty("Time", "short")] 135 85 public void SinglePointCrossoverApplyTest() { 136 86 TestRandom random = new TestRandom(); … … 153 103 try { 154 104 actual = SinglePointCrossover.Apply(random, parent1, parent2); 155 } 156 catch (System.ArgumentException) { 105 } catch (System.ArgumentException) { 157 106 exceptionFired = true; 158 107 } … … 168 117 // The following test is not based on published examples 169 118 } 170 171 /// <summary>172 ///A test for SinglePointCrossover Constructor173 ///</summary>174 [TestMethod]175 public void SinglePointCrossoverConstructorTest() {176 SinglePointCrossover target = new SinglePointCrossover();177 }178 119 } 179 120 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/UniformOnePositionManipulatorTest.cs ¶
r9768 r9777 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestClass()] 33 32 public class UniformOnePositionManipulatorTest { 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 }50 51 #region Additional test attributes52 //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 class56 //[ClassInitialize()]57 //public static void MyClassInitialize(TestContext testContext)58 //{59 //}60 //61 //Use ClassCleanup to run code after all tests in a class have run62 //[ClassCleanup()]63 //public static void MyClassCleanup()64 //{65 //}66 //67 //Use TestInitialize to run code before running each test68 //[TestInitialize()]69 //public void MyTestInitialize()70 //{71 //}72 //73 //Use TestCleanup to run code after each test has run74 //[TestCleanup()]75 //public void MyTestCleanup()76 //{77 //}78 //79 #endregion80 81 82 33 /// <summary> 83 34 ///A test for Apply 84 35 ///</summary> 85 [TestMethod] 36 [TestMethod()] 37 [TestCategory("Encodings.RealVector")] 38 [TestProperty("Time", "short")] 86 39 public void UniformOnePositionManipulatorApplyTest() { 87 40 TestRandom random = new TestRandom(); … … 98 51 Assert.IsTrue(Auxiliary.RealVectorIsAlmostEqualByPosition(expected, parent)); 99 52 } 100 101 /// <summary>102 ///A test for UniformOnePositionManipulator Constructor103 ///</summary>104 [TestMethod]105 public void UniformOnePositionManipulatorConstructorTest() {106 UniformOnePositionManipulator target = new UniformOnePositionManipulator();107 }108 53 } 109 54 } -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/DirectScheduleGTCrossoverTest.cs ¶
r9769 r9777 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.ScheduleEncoding;24 23 using HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition; 25 24 using HeuristicLab.Encodings.ScheduleEncoding.ScheduleEncoding; … … 28 27 29 28 namespace HeuristicLab.Encodings.ScheduleEncoding.Tests { 30 31 32 29 /// <summary> 33 30 ///This is a test class for DirectScheduleGTCrossoverTest and is intended … … 36 33 [TestClass()] 37 34 public class DirectScheduleGTCrossoverTest { 38 39 40 private TestContext testContextInstance;41 42 /// <summary>43 ///Gets or sets the test context which provides44 ///information about and functionality for the current test run.45 ///</summary>46 public TestContext TestContext {47 get {48 return testContextInstance;49 }50 set {51 testContextInstance = value;52 }53 }54 55 #region Additional test attributes56 //57 //You can use the following additional attributes as you write your tests:58 //59 //Use ClassInitialize to run code before running the first test in the class60 //[ClassInitialize()]61 //public static void MyClassInitialize(TestContext testContext)62 //{63 //}64 //65 //Use ClassCleanup to run code after all tests in a class have run66 //[ClassCleanup()]67 //public static void MyClassCleanup()68 //{69 //}70 //71 //Use TestInitialize to run code before running each test72 //[TestInitialize()]73 //public void MyTestInitialize()74 //{75 //}76 //77 //Use TestCleanup to run code after each test has run78 //[TestCleanup()]79 //public void MyTestCleanup()80 //{81 //}82 //83 #endregion84 85 86 35 /// <summary> 87 36 ///A test for Apply 88 37 ///</summary> 89 38 [TestMethod] 39 [TestCategory("Encodings.Schedule")] 40 [TestProperty("Time", "short")] 90 41 public void ApplyTest() { 91 IRandom random = new TestRandom(new int[] { 42 IRandom random = new TestRandom(new int[] { 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1 }, new double[] { 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9 }); 92 43 Schedule parent1 = TestUtils.CreateTestSchedule1(); 93 44 Schedule parent2 = TestUtils.CreateTestSchedule2(); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/JSMJOXCrossoverTest.cs ¶
r9769 r9777 27 27 28 28 namespace HeuristicLab.Encodings.ScheduleEncoding.Tests { 29 30 31 29 /// <summary> 32 30 ///This is a test class for JSMJOXCrossoverTest and is intended … … 35 33 [TestClass()] 36 34 public class JSMJOXCrossoverTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///information about and functionality for the current test run.44 ///</summary>45 public TestContext TestContext {46 get {47 return testContextInstance;48 }49 set {50 testContextInstance = value;51 }52 }53 54 #region Additional test attributes55 //56 //You can use the following additional attributes as you write your tests:57 //58 //Use ClassInitialize to run code before running the first test in the class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 85 35 /// <summary> 86 36 ///A test for Apply 87 37 ///</summary> 88 38 [TestMethod] 39 [TestCategory("Encodings.Schedule")] 40 [TestProperty("Time", "short")] 89 41 public void ApplyTest() { 90 42 IRandom random = new TestRandom(new int[] { 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1 }, null); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/JSMSXXCrossoverTest.cs ¶
r9769 r9777 27 27 28 28 namespace HeuristicLab.Encodings.ScheduleEncoding.Tests { 29 30 31 29 /// <summary> 32 30 ///This is a test class for JSMSXXCrossoverTest and is intended … … 35 33 [TestClass()] 36 34 public class JSMSXXCrossoverTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///information about and functionality for the current test run.44 ///</summary>45 public TestContext TestContext {46 get {47 return testContextInstance;48 }49 set {50 testContextInstance = value;51 }52 }53 54 #region Additional test attributes55 //56 //You can use the following additional attributes as you write your tests:57 //58 //Use ClassInitialize to run code before running the first test in the class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 85 35 /// <summary> 86 36 ///A test for Apply 87 37 ///</summary> 88 38 [TestMethod] 39 [TestCategory("Encodings.Schedule")] 40 [TestProperty("Time", "short")] 89 41 public void ApplyTest() { 90 42 IRandom random = new TestRandom(new int[] { 3 }, null); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/JSMShiftChangeManipulatorTest.cs ¶
r9769 r9777 27 27 28 28 namespace HeuristicLab.Encodings.ScheduleEncoding.Tests { 29 30 31 29 /// <summary> 32 30 ///This is a test class for JSMShiftChangeManipulatorTest and is intended … … 35 33 [TestClass()] 36 34 public class JSMShiftChangeManipulatorTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///information about and functionality for the current test run.44 ///</summary>45 public TestContext TestContext {46 get {47 return testContextInstance;48 }49 set {50 testContextInstance = value;51 }52 }53 54 #region Additional test attributes55 //56 //You can use the following additional attributes as you write your tests:57 //58 //Use ClassInitialize to run code before running the first test in the class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 85 35 /// <summary> 86 36 ///A test for Apply 87 37 ///</summary> 88 38 [TestMethod] 39 [TestCategory("Encodings.Schedule")] 40 [TestProperty("Time", "short")] 89 41 public void ApplyTest() { 90 42 IRandom random = new TestRandom(new int[] { 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2 }, null); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/PWRGOXCrossoverTest.cs ¶
r9769 r9777 27 27 28 28 namespace HeuristicLab.Encodings.ScheduleEncoding.Tests { 29 30 31 29 /// <summary> 32 30 ///This is a test class for PWRGOXCrossoverTest and is intended … … 35 33 [TestClass()] 36 34 public class PWRGOXCrossoverTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///information about and functionality for the current test run.44 ///</summary>45 public TestContext TestContext {46 get {47 return testContextInstance;48 }49 set {50 testContextInstance = value;51 }52 }53 54 #region Additional test attributes55 //56 //You can use the following additional attributes as you write your tests:57 //58 //Use ClassInitialize to run code before running the first test in the class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 85 35 /// <summary> 86 36 ///A test for Apply 87 37 ///</summary> 88 38 [TestMethod] 39 [TestCategory("Encodings.Schedule")] 40 [TestProperty("Time", "short")] 89 41 public void ApplyTest() { 90 42 IRandom random = new TestRandom(new int[] { 3 }, null); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/PWRPPXCrossoverTest.cs ¶
r9769 r9777 27 27 28 28 namespace HeuristicLab.Encodings.ScheduleEncoding.Tests { 29 30 31 29 /// <summary> 32 30 ///This is a test class for PWRPPXCrossoverTest and is intended … … 35 33 [TestClass()] 36 34 public class PWRPPXCrossoverTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///information about and functionality for the current test run.44 ///</summary>45 public TestContext TestContext {46 get {47 return testContextInstance;48 }49 set {50 testContextInstance = value;51 }52 }53 54 #region Additional test attributes55 //56 //You can use the following additional attributes as you write your tests:57 //58 //Use ClassInitialize to run code before running the first test in the class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 85 35 /// <summary> 86 36 ///A test for Apply 87 37 ///</summary> 88 38 [TestMethod] 39 [TestCategory("Encodings.Schedule")] 40 [TestProperty("Time", "short")] 89 41 public void ApplyTest() { 90 42 IRandom random = new TestRandom(new int[] { 1, 1, 0, 0, 1, 1, 0, 0, 1 }, null); -
TabularUnified trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/TestUtils.cs ¶
r9764 r9777 23 23 using HeuristicLab.Encodings.IntegerVectorEncoding; 24 24 using HeuristicLab.Encodings.PermutationEncoding; 25 using HeuristicLab.Encodings.ScheduleEncoding;26 25 using HeuristicLab.Encodings.ScheduleEncoding.JobSequenceMatrix; 27 26 using HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition;
Note: See TracChangeset
for help on using the changeset viewer.