Changeset 14029 for branches/crossvalidation-2434/HeuristicLab.Tests/HeuristicLab.Encodings.IntegerVectorEncoding-3.3/SinglePointCrossoverTest.cs
- Timestamp:
- 07/08/16 14:40:02 (8 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Tests/HeuristicLab.Encodings.IntegerVectorEncoding-3.3/SinglePointCrossoverTest.cs
r12012 r14029 38 38 [TestProperty("Time", "short")] 39 39 public void SinglePointCrossoverCrossTest() { 40 SinglePointCrossover_Accessor target = new SinglePointCrossover_Accessor(new PrivateObject(typeof(SinglePointCrossover)));40 var target = new PrivateObject(typeof(SinglePointCrossover)); 41 41 ItemArray<IntegerVector> parents; 42 42 TestRandom random = new TestRandom(); … … 48 48 try { 49 49 IntegerVector actual; 50 actual = target.Cross(random, parents); 51 } catch (System.ArgumentException) { 50 actual = (IntegerVector)target.Invoke("Cross", random, parents); 51 } 52 catch (System.ArgumentException) { 52 53 exceptionFired = true; 53 54 } … … 59 60 try { 60 61 IntegerVector actual; 61 actual = target.Cross(random, parents); 62 } catch (System.ArgumentException) { 62 actual = (IntegerVector)target.Invoke("Cross", random, parents); 63 } 64 catch (System.ArgumentException) { 63 65 exceptionFired = true; 64 66 } … … 92 94 try { 93 95 actual = SinglePointCrossover.Apply(random, parent1, parent2); 94 } catch (System.ArgumentException) { 96 } 97 catch (System.ArgumentException) { 95 98 exceptionFired = true; 96 99 }
Note: See TracChangeset
for help on using the changeset viewer.