Changeset 4068 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/CyclicCrossover2Test.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/CyclicCrossover2Test.cs
r3742 r4068 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 using HeuristicLab.Encodings.PermutationEncoding;25 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 29 30 27 /// <summary> 28 ///This is a test class for CyclicCrossover2Test and is intended 29 ///to contain all CyclicCrossover2Test Unit Tests 30 ///</summary> 31 31 [TestClass()] 32 32 public class CyclicCrossover2Test { … … 93 93 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 94 94 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 95 } catch (System.InvalidOperationException) { 95 } 96 catch (System.InvalidOperationException) { 96 97 exceptionFired = true; 97 98 } … … 124 125 try { 125 126 CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 126 } catch (System.ArgumentException) { 127 } 128 catch (System.ArgumentException) { 127 129 exceptionFired = true; 128 130 }
Note: See TracChangeset
for help on using the changeset viewer.