Changeset 11205 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3
- Timestamp:
- 07/18/14 13:44:53 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/Auxiliary.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Common; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 25 namespace HeuristicLab.Encodings.RealVectorEncoding _33.Tests {24 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 26 25 public static class Auxiliary { 27 26 public static bool RealVectorIsAlmostEqualByPosition(RealVector p1, RealVector p2) { -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/BlendAlphaBetaCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 29 30 27 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 31 28 /// <summary> 32 29 ///This is a test class for BlendAlphaBetaCrossoverTest and is intended … … 35 32 [TestClass()] 36 33 public class BlendAlphaBetaCrossoverTest { 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 37 [TestMethod()] 88 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 38 [TestCategory("Encodings.RealVector")] 39 [TestProperty("Time", "short")] 89 40 public void BlendAlphaBetaCrossoverCrossTest() { 90 41 BlendAlphaBetaCrossover_Accessor target = new BlendAlphaBetaCrossover_Accessor(new PrivateObject(typeof(BlendAlphaBetaCrossover))); … … 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 } … … 122 71 ///</summary> 123 72 [TestMethod()] 73 [TestCategory("Encodings.RealVector")] 74 [TestProperty("Time", "short")] 124 75 public void BlendAlphaBetaCrossoverApplyTest() { 125 76 TestRandom random = new TestRandom(); … … 147 98 try { 148 99 actual = BlendAlphaBetaCrossover.Apply(random, parent1, parent2, alpha, beta); 149 } 150 catch (System.ArgumentException) { 100 } catch (System.ArgumentException) { 151 101 exceptionFired = true; 152 102 } … … 161 111 try { 162 112 actual = BlendAlphaBetaCrossover.Apply(random, parent1, parent2, alpha, beta); 163 } 164 catch (System.ArgumentException) { 113 } catch (System.ArgumentException) { 165 114 exceptionFired = true; 166 115 } 167 116 Assert.IsTrue(exceptionFired); 168 117 } 169 170 /// <summary>171 ///A test for BlendAlphaBetaCrossover Constructor172 ///</summary>173 [TestMethod()]174 public void BlendAlphaBetaCrossoverConstructorTest() {175 BlendAlphaBetaCrossover target = new BlendAlphaBetaCrossover();176 }177 118 } 178 119 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/BlendAlphaCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 29 30 27 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 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 37 [TestMethod()] 88 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 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 } … … 122 71 ///</summary> 123 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/DiscreteCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 28 29 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 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.RealVectorEncoding-3.3.dll")] 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 } … … 109 59 ///</summary> 110 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/HeuristicCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 28 29 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 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 36 [TestMethod()] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 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 } … … 121 70 ///</summary> 122 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/LocalCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 28 29 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 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 36 [TestMethod()] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 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 } … … 121 70 ///</summary> 122 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/MichalewiczNonUniformAllPositionsManipulatorTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 namespace HeuristicLab.Encodings.RealVectorEncoding _33.Tests {26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 27 /// <summary> 29 28 ///This is a test class for MichalewiczNonUniformAllPositionsManipulator and is intended … … 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 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/MichalewiczNonUniformOnePositionManipulatorTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 namespace HeuristicLab.Encodings.RealVectorEncoding _33.Tests {26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 27 /// <summary> 29 28 ///This is a test class for MichalewiczNonUniformOnePositionManipulator and is intended … … 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 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/PolynomialAllPositionManipulatorTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 namespace HeuristicLab.Encodings.RealVectorEncoding _33.Tests {26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 27 /// <summary> 29 28 ///This is a test class for PolynomialAllPositionManipulator and is intended … … 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 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/PolynomialOnePositionManipulatorTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 namespace HeuristicLab.Encodings.RealVectorEncoding _33.Tests {26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 27 /// <summary> 29 28 ///This is a test class for PolynomialOnePositionManipulator and is intended … … 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 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/RandomConvexCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 28 29 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 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 36 [TestMethod()] 87 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 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 } … … 121 70 ///</summary> 122 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/SimulatedBinaryCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 29 30 27 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 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 37 [TestMethod()] 88 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 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))); … … 120 71 ///</summary> 121 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/SinglePointCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 28 29 26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 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.RealVectorEncoding-3.3.dll")] 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 } … … 133 81 ///</summary> 134 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 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/UniformOnePositionManipulatorTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.RealVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 namespace HeuristicLab.Encodings.RealVectorEncoding _33.Tests {26 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 28 27 /// <summary> 29 28 ///This is a test class for UniformOnePositionManipulator and is intended … … 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 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 }
Note: See TracChangeset
for help on using the changeset viewer.