Changeset 11205 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.IntegerVectorEncoding-3.3/SinglePointCrossoverTest.cs
- Timestamp:
- 07/18/14 13:44:53 (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.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.IntegerVectorEncoding-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.IntegerVectorEncoding;24 23 using HeuristicLab.Tests; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 namespace HeuristicLab.Encodings.IntegerVectorEncoding_33.Tests { 28 29 26 namespace HeuristicLab.Encodings.IntegerVectorEncoding.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 [TestMethod()] 87 [DeploymentItem("HeuristicLab.Encodings.IntegerVectorEncoding-3.3.dll")] 36 [TestMethod] 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 } … … 120 69 ///A test for Apply 121 70 ///</summary> 122 [TestMethod()] 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 }
Note: See TracChangeset
for help on using the changeset viewer.