Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3
- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/Auxiliary.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 22 using HeuristicLab.Encodings.BinaryVectorEncoding; 23 24 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { 23 25 public static class Auxiliary { 24 26 public static bool BinaryVectorIsEqualByPosition(BinaryVector p1, BinaryVector p2) { -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/NPointCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Data; 24 using HeuristicLab.Encodings.BinaryVectorEncoding; 24 25 using HeuristicLab.Tests; 25 26 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 27 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 28 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { 29 30 28 31 /// <summary> 29 32 ///This is a test class for SinglePointCrossoverTest and is intended … … 32 35 [TestClass()] 33 36 public class NPointCrossoverTest { 37 38 39 private TestContext testContextInstance; 40 41 /// <summary> 42 ///Gets or sets the test context which provides 43 ///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 attributes 55 // 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 class 59 //[ClassInitialize()] 60 //public static void MyClassInitialize(TestContext testContext) 61 //{ 62 //} 63 // 64 //Use ClassCleanup to run code after all tests in a class have run 65 //[ClassCleanup()] 66 //public static void MyClassCleanup() 67 //{ 68 //} 69 // 70 //Use TestInitialize to run code before running each test 71 //[TestInitialize()] 72 //public void MyTestInitialize() 73 //{ 74 //} 75 // 76 //Use TestCleanup to run code after each test has run 77 //[TestCleanup()] 78 //public void MyTestCleanup() 79 //{ 80 //} 81 // 82 #endregion 83 34 84 /// <summary> 35 85 ///A test for Cross 36 86 ///</summary> 37 [TestMethod] 38 [TestCategory("Encodings.BinaryVector")] 39 [TestProperty("Time", "short")] 87 [TestMethod()] 88 [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")] 40 89 public void NPointCrossoverCrossTest() { 41 90 NPointCrossover_Accessor target = new NPointCrossover_Accessor(new PrivateObject(typeof(NPointCrossover))); … … 50 99 BinaryVector actual; 51 100 actual = target.Cross(random, parents); 52 } catch (System.ArgumentException) { 101 } 102 catch (System.ArgumentException) { 53 103 exceptionFired = true; 54 104 } … … 61 111 BinaryVector actual; 62 112 actual = target.Cross(random, parents); 63 } catch (System.ArgumentException) { 113 } 114 catch (System.ArgumentException) { 64 115 exceptionFired = true; 65 116 } … … 70 121 ///A test for Apply 71 122 ///</summary> 72 [TestMethod] 73 [TestCategory("Encodings.BinaryVector")] 74 [TestProperty("Time", "short")] 123 [TestMethod()] 75 124 public void NPointCrossoverApplyTest() { 76 125 TestRandom random = new TestRandom(); … … 116 165 try { 117 166 actual = NPointCrossover.Apply(random, parent1, parent2, n); 118 } catch (System.ArgumentException) { 167 } 168 catch (System.ArgumentException) { 119 169 exceptionFired = true; 120 170 } 121 171 Assert.IsTrue(exceptionFired); 122 172 } 173 174 /// <summary> 175 ///A test for SinglePointCrossover Constructor 176 ///</summary> 177 [TestMethod()] 178 public void NPointCrossoverConstructorTest() { 179 NPointCrossover target = new NPointCrossover(); 180 } 123 181 } 124 182 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePointCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System;23 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.BinaryVectorEncoding; 24 24 using HeuristicLab.Tests; 25 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 26 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { 28 29 28 30 /// <summary> 29 31 ///This is a test class for SinglePointCrossoverTest and is intended … … 32 34 [TestClass()] 33 35 public class SinglePointCrossoverTest { 36 37 38 private TestContext testContextInstance; 39 40 /// <summary> 41 ///Gets or sets the test context which provides 42 ///information about and functionality for the current test run. 43 ///</summary> 44 public TestContext TestContext { 45 get { 46 return testContextInstance; 47 } 48 set { 49 testContextInstance = value; 50 } 51 } 52 53 #region Additional test attributes 54 // 55 //You can use the following additional attributes as you write your tests: 56 // 57 //Use ClassInitialize to run code before running the first test in the class 58 //[ClassInitialize()] 59 //public static void MyClassInitialize(TestContext testContext) 60 //{ 61 //} 62 // 63 //Use ClassCleanup to run code after all tests in a class have run 64 //[ClassCleanup()] 65 //public static void MyClassCleanup() 66 //{ 67 //} 68 // 69 //Use TestInitialize to run code before running each test 70 //[TestInitialize()] 71 //public void MyTestInitialize() 72 //{ 73 //} 74 // 75 //Use TestCleanup to run code after each test has run 76 //[TestCleanup()] 77 //public void MyTestCleanup() 78 //{ 79 //} 80 // 81 #endregion 82 34 83 /// <summary> 35 84 ///A test for Cross 36 85 ///</summary> 37 [TestMethod] 38 [TestCategory("Encodings.BinaryVector")] 39 [TestProperty("Time", "short")] 86 [TestMethod()] 87 [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")] 40 88 public void SinglePointCrossoverCrossTest() { 41 89 SinglePointCrossover_Accessor target = new SinglePointCrossover_Accessor(new PrivateObject(typeof(SinglePointCrossover))); … … 50 98 BinaryVector actual; 51 99 actual = target.Cross(random, parents); 52 } catch (ArgumentException) { 100 } 101 catch (System.ArgumentException) { 53 102 exceptionFired = true; 54 103 } … … 61 110 BinaryVector actual; 62 111 actual = target.Cross(random, parents); 63 } catch (ArgumentException) { 112 } 113 catch (System.ArgumentException) { 64 114 exceptionFired = true; 65 115 } 66 116 Assert.IsTrue(exceptionFired); 67 117 } 118 119 /// <summary> 120 ///A test for SinglePointCrossover Constructor 121 ///</summary> 122 [TestMethod()] 123 public void SinglePointCrossoverConstructorTest() { 124 SinglePointCrossover target = new SinglePointCrossover(); 125 } 68 126 } 69 127 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePositionBitflipManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Encodings.BinaryVectorEncoding; 22 23 using HeuristicLab.Tests; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 25 25 namespace HeuristicLab.Encodings.BinaryVectorEncoding .Tests {26 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { 26 27 /// <summary> 27 28 ///This is a test class for SinglePositionBitflipManipulator and is intended … … 30 31 [TestClass()] 31 32 public class SinglePositionBitflipManipulatorTest { 33 34 35 private TestContext testContextInstance; 36 37 /// <summary> 38 ///Gets or sets the test context which provides 39 ///information about and functionality for the current test run. 40 ///</summary> 41 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 48 } 49 50 #region Additional test attributes 51 // 52 //You can use the following additional attributes as you write your tests: 53 // 54 //Use ClassInitialize to run code before running the first test in the class 55 //[ClassInitialize()] 56 //public static void MyClassInitialize(TestContext testContext) 57 //{ 58 //} 59 // 60 //Use ClassCleanup to run code after all tests in a class have run 61 //[ClassCleanup()] 62 //public static void MyClassCleanup() 63 //{ 64 //} 65 // 66 //Use TestInitialize to run code before running each test 67 //[TestInitialize()] 68 //public void MyTestInitialize() 69 //{ 70 //} 71 // 72 //Use TestCleanup to run code after each test has run 73 //[TestCleanup()] 74 //public void MyTestCleanup() 75 //{ 76 //} 77 // 78 #endregion 79 80 32 81 /// <summary> 33 82 ///A test for Apply 34 83 ///</summary> 35 [TestMethod] 36 [TestCategory("Encodings.BinaryVector")] 37 [TestProperty("Time", "short")] 84 [TestMethod()] 38 85 public void SinglePositionBitflipManipulatorApplyTest() { 39 86 TestRandom random = new TestRandom(); … … 49 96 Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(expected, parent)); 50 97 } 98 99 /// <summary> 100 ///A test for SinglePositionBitflipManipulator Constructor 101 ///</summary> 102 [TestMethod()] 103 public void SinglePositionBitflipManipulatorConstructorTest() { 104 SinglePositionBitflipManipulator target = new SinglePositionBitflipManipulator(); 105 } 51 106 } 52 107 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SomePositionsBitflipManipulatorTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Data; 23 using HeuristicLab.Encodings.BinaryVectorEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.BinaryVectorEncoding .Tests {27 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for SomePositionsBitflipManipulator and is intended … … 31 32 [TestClass()] 32 33 public class SomePositionsBitflipManipulatorTest { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///information about and functionality for the current test run. 41 ///</summary> 42 public TestContext TestContext { 43 get { 44 return testContextInstance; 45 } 46 set { 47 testContextInstance = value; 48 } 49 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Apply 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.BinaryVector")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 39 86 public void SomePositionsBitflipManipulatorApplyTest() { 40 87 TestRandom random = new TestRandom(); … … 50 97 Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(expected, parent)); 51 98 } 99 100 /// <summary> 101 ///A test for SomePositionsBitflipManipulator Constructor 102 ///</summary> 103 [TestMethod()] 104 public void SomePositionsBitflipManipulatorConstructorTest() { 105 SomePositionsBitflipManipulator target = new SomePositionsBitflipManipulator(); 106 } 52 107 } 53 108 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/UniformCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.BinaryVectorEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { 28 29 27 30 /// <summary> 28 31 ///This is a test class for SinglePointCrossoverTest and is intended … … 31 34 [TestClass()] 32 35 public class UniformCrossoverTest { 36 37 38 private TestContext testContextInstance; 39 40 /// <summary> 41 ///Gets or sets the test context which provides 42 ///information about and functionality for the current test run. 43 ///</summary> 44 public TestContext TestContext { 45 get { 46 return testContextInstance; 47 } 48 set { 49 testContextInstance = value; 50 } 51 } 52 53 #region Additional test attributes 54 // 55 //You can use the following additional attributes as you write your tests: 56 // 57 //Use ClassInitialize to run code before running the first test in the class 58 //[ClassInitialize()] 59 //public static void MyClassInitialize(TestContext testContext) 60 //{ 61 //} 62 // 63 //Use ClassCleanup to run code after all tests in a class have run 64 //[ClassCleanup()] 65 //public static void MyClassCleanup() 66 //{ 67 //} 68 // 69 //Use TestInitialize to run code before running each test 70 //[TestInitialize()] 71 //public void MyTestInitialize() 72 //{ 73 //} 74 // 75 //Use TestCleanup to run code after each test has run 76 //[TestCleanup()] 77 //public void MyTestCleanup() 78 //{ 79 //} 80 // 81 #endregion 82 33 83 /// <summary> 34 84 ///A test for Cross 35 85 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.BinaryVector")] 38 [TestProperty("Time", "short")] 86 [TestMethod()] 87 [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")] 39 88 public void SinglePointCrossoverCrossTest() { 40 89 UniformCrossover_Accessor target = new UniformCrossover_Accessor(new PrivateObject(typeof(UniformCrossover))); … … 49 98 BinaryVector actual; 50 99 actual = target.Cross(random, parents); 51 } catch (System.ArgumentException) { 100 } 101 catch (System.ArgumentException) { 52 102 exceptionFired = true; 53 103 } … … 60 110 BinaryVector actual; 61 111 actual = target.Cross(random, parents); 62 } catch (System.ArgumentException) { 112 } 113 catch (System.ArgumentException) { 63 114 exceptionFired = true; 64 115 } … … 69 120 ///A test for Apply 70 121 ///</summary> 71 [TestMethod] 72 [TestCategory("Encodings.BinaryVector")] 73 [TestProperty("Time", "short")] 122 [TestMethod()] 74 123 public void SinglePointCrossoverApplyTest() { 75 124 TestRandom random = new TestRandom(); … … 102 151 try { 103 152 actual = UniformCrossover.Apply(random, parent1, parent2); 104 } catch (System.ArgumentException) { 153 } 154 catch (System.ArgumentException) { 105 155 exceptionFired = true; 106 156 } 107 157 Assert.IsTrue(exceptionFired); 108 158 } 159 160 /// <summary> 161 ///A test for SinglePointCrossover Constructor 162 ///</summary> 163 [TestMethod()] 164 public void SinglePointCrossoverConstructorTest() { 165 NPointCrossover target = new NPointCrossover(); 166 } 109 167 } 110 168 }
Note: See TracChangeset
for help on using the changeset viewer.