Changeset 4068 for trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/NPointCrossoverTest.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/NPointCrossoverTest.cs
r3742 r4068 20 20 #endregion 21 21 22 using HeuristicLab.Core; 23 using HeuristicLab.Data; 22 24 using HeuristicLab.Encodings.BinaryVectorEncoding; 23 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 using HeuristicLab.Common;25 using HeuristicLab.Core;26 using HeuristicLab.Data;27 using HeuristicLab.Parameters;28 26 29 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { … … 112 110 BinaryVector actual; 113 111 actual = target.Cross(random, parents); 114 } catch (System.ArgumentException) { 112 } 113 catch (System.ArgumentException) { 115 114 exceptionFired = true; 116 115 } … … 136 135 actual = NPointCrossover.Apply(random, parent1, parent2, n); 137 136 Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(actual, expected)); 138 137 139 138 // The following test is based on Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg, p. 48 140 139 random.Reset(); … … 165 164 try { 166 165 actual = NPointCrossover.Apply(random, parent1, parent2, n); 167 } catch (System.ArgumentException) { 166 } 167 catch (System.ArgumentException) { 168 168 exceptionFired = true; 169 169 }
Note: See TracChangeset
for help on using the changeset viewer.