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)

Location:
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests
Files:
17 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      }
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/CyclicCrossover2Test.cs

    r3742 r4068  
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    24 using HeuristicLab.Encodings.PermutationEncoding;
    2525
    2626namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    27     /// <summary>
    28     ///This is a test class for CyclicCrossover2Test and is intended
    29     ///to contain all CyclicCrossover2Test Unit Tests
    30     ///</summary>
     27  /// <summary>
     28  ///This is a test class for CyclicCrossover2Test and is intended
     29  ///to contain all CyclicCrossover2Test Unit Tests
     30  ///</summary>
    3131  [TestClass()]
    3232  public class CyclicCrossover2Test {
     
    9393        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    9494          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    95       } catch (System.InvalidOperationException) {
     95      }
     96      catch (System.InvalidOperationException) {
    9697        exceptionFired = true;
    9798      }
     
    124125      try {
    125126        CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    126       } catch (System.ArgumentException) {
     127      }
     128      catch (System.ArgumentException) {
    127129        exceptionFired = true;
    128130      }
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/CyclicCrossoverTest.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 {
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/EdgeRecombinationCrossoverTest.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 {
     
    122121      Assert.IsTrue(actual.Validate());
    123122      Assert.IsTrue(Auxiliary.PermutationIsEqualByPosition(expected, actual));
    124      
     123
    125124      // perform a test when the two permutations are of unequal length
    126125      random.Reset();
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/InsertionManipulatorTest.cs

    r3231 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2424
    2525namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
     
    9090      parent = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 2, 3, 4, 5, 6, 7 });
    9191      Assert.IsTrue(parent.Validate());
    92      
     92
    9393      expected = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 2, 4, 5, 6, 3, 7 });
    9494      Assert.IsTrue(expected.Validate());
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/InversionManipulatorTest.cs

    r3231 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2424
    2525namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
     
    9090      parent = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8 });
    9191      Assert.IsTrue(parent.Validate());
    92      
     92
    9393      expected = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 4, 3, 2, 1, 5, 6, 7, 8 });
    9494      Assert.IsTrue(expected.Validate());
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/MaximalPreservativeCrossoverTest.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 {
     
    121120      Assert.IsTrue(actual.Validate());
    122121      Assert.IsTrue(Auxiliary.PermutationIsEqualByPosition(expected, actual));
    123      
     122
    124123      // perform a test when the two permutations are of unequal length
    125124      random.Reset();
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/OrderBasedCrossoverTest.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 OrderBasedCrossoverTest and is intended
    30     ///to contain all OrderBasedCrossoverTest Unit Tests
    31     ///</summary>
     27  /// <summary>
     28  ///This is a test class for OrderBasedCrossoverTest and is intended
     29  ///to contain all OrderBasedCrossoverTest Unit Tests
     30  ///</summary>
    3231  [TestClass()]
    3332  public class OrderBasedCrossoverTest {
     
    8786    public void OrderBasedCrossoverCrossTest() {
    8887      TestRandom random = new TestRandom();
    89       OrderBasedCrossover_Accessor target = 
     88      OrderBasedCrossover_Accessor target =
    9089        new OrderBasedCrossover_Accessor(new PrivateObject(typeof(OrderBasedCrossover)));
    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      }
     
    124124      try {
    125125        OrderBasedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    126       } catch (System.ArgumentException) {
     126      }
     127      catch (System.ArgumentException) {
    127128        exceptionFired = true;
    128129      }
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/OrderCrossover2Test.cs

    r3742 r4068  
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    24 using HeuristicLab.Encodings.PermutationEncoding;
    2525
    2626namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    27     /// <summary>
    28     ///This is a test class for OrderCrossover2Test and is intended
    29     ///to contain all OrderCrossover2Test Unit Tests
    30     ///</summary>
     27  /// <summary>
     28  ///This is a test class for OrderCrossover2Test and is intended
     29  ///to contain all OrderCrossover2Test Unit Tests
     30  ///</summary>
    3131  [TestClass()]
    3232  public class OrderCrossover2Test {
     
    9292        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    9393          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    94       } catch (System.InvalidOperationException) {
     94      }
     95      catch (System.InvalidOperationException) {
    9596        exceptionFired = true;
    9697      }
     
    123124      try {
    124125        OrderCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    125       } catch (System.ArgumentException) {
     126      }
     127      catch (System.ArgumentException) {
    126128        exceptionFired = true;
    127129      }
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/OrderCrossoverTest.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 OrderCrossoverTest and is intended
    30     ///to contain all OrderCrossoverTest Unit Tests
    31     ///</summary>
     27  /// <summary>
     28  ///This is a test class for OrderCrossoverTest and is intended
     29  ///to contain all OrderCrossoverTest Unit Tests
     30  ///</summary>
    3231  [TestClass()]
    3332  public class OrderCrossoverTest {
     
    8786    public void OrderCrossoverCrossTest() {
    8887      TestRandom random = new TestRandom();
    89       OrderCrossover_Accessor target = 
     88      OrderCrossover_Accessor target =
    9089        new OrderCrossover_Accessor(new PrivateObject(typeof(OrderCrossover)));
    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      }
     
    177177      try {
    178178        OrderCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    179       } catch (System.ArgumentException) {
     179      }
     180      catch (System.ArgumentException) {
    180181        exceptionFired = true;
    181182      }
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/PartiallyMatchedCrossoverTest.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 {
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/PositionBasedCrossoverTest.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 {
     
    8988      PositionBasedCrossover_Accessor target = new PositionBasedCrossover_Accessor(
    9089        new PrivateObject(typeof(PositionBasedCrossover)));
    91      
     90
    9291      // perform a test with more than two parents
    9392      random.Reset();
     
    131130      try {
    132131        PositionBasedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    133       } catch (System.ArgumentException) {
     132      }
     133      catch (System.ArgumentException) {
    134134        exceptionFired = true;
    135135      }
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/ScrambleManipulatorTest.cs

    r3231 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2424
    2525namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
     
    9090      parent = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 2, 3, 4, 5, 6, 7 });
    9191      Assert.IsTrue(parent.Validate());
    92      
     92
    9393      expected = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 2, 4, 5, 6, 3, 7 });
    9494      Assert.IsTrue(expected.Validate());
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/Swap2ManipulatorTest.cs

    r3231 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2424
    2525namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/Swap3ManipulatorTest.cs

    r3231 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2424
    2525namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/TranslocationInversionManipulatorTest.cs

    r3231 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2424
    2525namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
     
    9090      parent = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 2, 3, 4, 5, 6, 7 });
    9191      Assert.IsTrue(parent.Validate());
    92      
     92
    9393      expected = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 5, 6, 4, 3, 2, 7 });
    9494      Assert.IsTrue(expected.Validate());
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/TranslocationManipulatorTest.cs

    r3231 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2424
    2525namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
     
    9090      parent = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 2, 3, 4, 5, 6, 7 });
    9191      Assert.IsTrue(parent.Validate());
    92      
     92
    9393      expected = new Permutation(PermutationTypes.RelativeUndirected, new int[] { 0, 1, 5, 6, 2, 3, 4, 7 });
    9494      Assert.IsTrue(expected.Validate());
Note: See TracChangeset for help on using the changeset viewer.