Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/CosaCrossoverTest.cs

    r3376 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Common;
    2322using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2424using Microsoft.VisualStudio.TestTools.UnitTesting;
    25 using HeuristicLab.Encodings.PermutationEncoding;
    2625
    2726namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    28     /// <summary>
    29     ///This is a test class for CosaCrossoverTest and is intended
    30     ///to contain all CosaCrossoverTest Unit Tests
    31     ///</summary>
     27  /// <summary>
     28  ///This is a test class for CosaCrossoverTest and is intended
     29  ///to contain all CosaCrossoverTest Unit Tests
     30  ///</summary>
    3231  [TestClass()]
    3332  public class CosaCrossoverTest {
     
    8786    public void CosaCrossoverCrossTest() {
    8887      TestRandom random = new TestRandom();
    89       CosaCrossover_Accessor target = 
     88      CosaCrossover_Accessor target =
    9089        new CosaCrossover_Accessor(new PrivateObject(typeof(CosaCrossover)));
    9190      // perform a test with more than two parents
     
    9594        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    9695          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    97       } catch (System.InvalidOperationException) {
     96      }
     97      catch (System.InvalidOperationException) {
    9898        exceptionFired = true;
    9999      }
     
    144144      Assert.IsTrue(actual.Validate());
    145145      Assert.IsTrue(Auxiliary.PermutationIsEqualByPosition(expected, actual));
    146      
     146
    147147      // perform a test when the two permutations are of unequal length
    148148      random.Reset();
     
    150150      try {
    151151        CosaCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    152       } catch (System.ArgumentException) {
     152      }
     153      catch (System.ArgumentException) {
    153154        exceptionFired = true;
    154155      }
Note: See TracChangeset for help on using the changeset viewer.