Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/UniformCrossoverTest.cs
- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 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/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.