Changeset 11205 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/NPointCrossoverTest.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.BinaryVectorEncoding-3.3/NPointCrossoverTest.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.BinaryVectorEncoding;25 24 using HeuristicLab.Tests; 26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 26 28 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { 29 30 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 31 28 /// <summary> 32 29 ///This is a test class for SinglePointCrossoverTest and is intended … … 35 32 [TestClass()] 36 33 public class NPointCrossoverTest { 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.BinaryVectorEncoding-3.3.dll")] 37 [TestMethod] 38 [TestCategory("Encodings.BinaryVector")] 39 [TestProperty("Time", "short")] 89 40 public void NPointCrossoverCrossTest() { 90 41 NPointCrossover_Accessor target = new NPointCrossover_Accessor(new PrivateObject(typeof(NPointCrossover))); … … 99 50 BinaryVector 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 BinaryVector 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.BinaryVector")] 74 [TestProperty("Time", "short")] 124 75 public void NPointCrossoverApplyTest() { 125 76 TestRandom random = new TestRandom(); … … 165 116 try { 166 117 actual = NPointCrossover.Apply(random, parent1, parent2, n); 167 } 168 catch (System.ArgumentException) { 118 } catch (System.ArgumentException) { 169 119 exceptionFired = true; 170 120 } 171 121 Assert.IsTrue(exceptionFired); 172 122 } 173 174 /// <summary>175 ///A test for SinglePointCrossover Constructor176 ///</summary>177 [TestMethod()]178 public void NPointCrossoverConstructorTest() {179 NPointCrossover target = new NPointCrossover();180 }181 123 } 182 124 }
Note: See TracChangeset
for help on using the changeset viewer.