Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/18/14 12:35:00 (10 years ago)
Author:
ascheibe
Message:

reverted last commit

Location:
branches/HiveStatistics/sources
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources

  • branches/HiveStatistics/sources/HeuristicLab.Tests

  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/Auxiliary.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
    22 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     22using HeuristicLab.Encodings.PermutationEncoding;
     23
     24namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2325  public static class Auxiliary {
    2426    public static bool PermutationIsEqualByPosition(Permutation p1, Permutation p2) {
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CosaCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for CosaCrossoverTest and is intended
     
    3132  [TestClass()]
    3233  public class CosaCrossoverTest {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void CosaCrossoverCrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4795        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4896          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    49       } catch (System.InvalidOperationException) {
     97      }
     98      catch (System.InvalidOperationException) {
    5099        exceptionFired = true;
    51100      }
     
    56105    ///A test for Apply
    57106    ///</summary>
    58     [TestMethod]
    59     [TestCategory("Encodings.Permutation")]
    60     [TestProperty("Time", "short")]
     107    [TestMethod()]
    61108    public void CosaCrossoverApplyTest() {
    62109      TestRandom random = new TestRandom();
     
    104151      try {
    105152        CosaCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    106       } catch (System.ArgumentException) {
     153      }
     154      catch (System.ArgumentException) {
    107155        exceptionFired = true;
    108156      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CyclicCrossover2Test.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for CyclicCrossover2Test and is intended
     
    3132  [TestClass()]
    3233  public class CyclicCrossover2Test {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void CyclicCrossover2CrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4694        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4795          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    48       } catch (System.InvalidOperationException) {
     96      }
     97      catch (System.InvalidOperationException) {
    4998        exceptionFired = true;
    5099      }
     
    55104    ///A test for Apply
    56105    ///</summary>
    57     [TestMethod]
    58     [TestCategory("Encodings.Permutation")]
    59     [TestProperty("Time", "short")]
     106    [TestMethod()]
    60107    public void CyclicCrossover2ApplyTest() {
    61108      TestRandom random = new TestRandom();
     
    79126      try {
    80127        CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    81       } catch (System.ArgumentException) {
     128      }
     129      catch (System.ArgumentException) {
    82130        exceptionFired = true;
    83131      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CyclicCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for CyclicCrossover and is intended
     
    3132  [TestClass()]
    3233  public class CyclicCrossoverTest {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void CyclicCrossoverCrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4795        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4896          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    49       } catch (System.InvalidOperationException) {
     97      }
     98      catch (System.InvalidOperationException) {
    5099        exceptionFired = true;
    51100      }
     
    56105    ///A test for Apply
    57106    ///</summary>
    58     [TestMethod]
    59     [TestCategory("Encodings.Permutation")]
    60     [TestProperty("Time", "short")]
     107    [TestMethod()]
    61108    public void CyclicCrossoverApplyTest() {
    62109      TestRandom random = new TestRandom();
     
    80127      try {
    81128        CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    82       } catch (System.ArgumentException) {
     129      }
     130      catch (System.ArgumentException) {
    83131        exceptionFired = true;
    84132      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/EdgeRecombinationCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for EdgeRecombinationCrossover and is intended
     
    3132  [TestClass()]
    3233  public class EdgeRecombinationCrossoverTest {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void EdgeRecombinationCrossoverCrossoverCrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4795        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4896          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    49       } catch (System.InvalidOperationException) {
     97      }
     98      catch (System.InvalidOperationException) {
    5099        exceptionFired = true;
    51100      }
     
    56105    ///A test for Apply
    57106    ///</summary>
    58     [TestMethod]
    59     [TestCategory("Encodings.Permutation")]
    60     [TestProperty("Time", "short")]
     107    [TestMethod()]
    61108    public void EdgeRecombinationCrossoverApplyTest() {
    62109      TestRandom random = new TestRandom();
     
    81128      try {
    82129        EdgeRecombinationCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    83       } catch (System.ArgumentException) {
     130      }
     131      catch (System.ArgumentException) {
    84132        exceptionFired = true;
    85133      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/InsertionManipulatorTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using HeuristicLab.Tests;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    2425
    25 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     26namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2627  /// <summary>
    2728  ///This is a test class for InsertionManipulator and is intended
     
    3031  [TestClass()]
    3132  public class InsertionManipulatorTest {
     33
     34
     35    private TestContext testContextInstance;
     36
     37    /// <summary>
     38    ///Gets or sets the test context which provides
     39    ///information about and functionality for the current test run.
     40    ///</summary>
     41    public TestContext TestContext {
     42      get {
     43        return testContextInstance;
     44      }
     45      set {
     46        testContextInstance = value;
     47      }
     48    }
     49
     50    #region Additional test attributes
     51    //
     52    //You can use the following additional attributes as you write your tests:
     53    //
     54    //Use ClassInitialize to run code before running the first test in the class
     55    //[ClassInitialize()]
     56    //public static void MyClassInitialize(TestContext testContext)
     57    //{
     58    //}
     59    //
     60    //Use ClassCleanup to run code after all tests in a class have run
     61    //[ClassCleanup()]
     62    //public static void MyClassCleanup()
     63    //{
     64    //}
     65    //
     66    //Use TestInitialize to run code before running each test
     67    //[TestInitialize()]
     68    //public void MyTestInitialize()
     69    //{
     70    //}
     71    //
     72    //Use TestCleanup to run code after each test has run
     73    //[TestCleanup()]
     74    //public void MyTestCleanup()
     75    //{
     76    //}
     77    //
     78    #endregion
     79
     80
    3281    /// <summary>
    3382    ///A test for Apply
    3483    ///</summary>
    35     [TestMethod]
    36     [TestCategory("Encodings.Permutation")]
    37     [TestProperty("Time", "short")]
     84    [TestMethod()]
    3885    public void InsertionManipulatorApplyTest() {
    3986      TestRandom random = new TestRandom();
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/InversionManipulatorTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using HeuristicLab.Tests;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    2425
    25 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     26namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2627  /// <summary>
    2728  ///This is a test class for InversionManipulator and is intended
     
    3031  [TestClass()]
    3132  public class InversionManipulatorTest {
     33
     34
     35    private TestContext testContextInstance;
     36
     37    /// <summary>
     38    ///Gets or sets the test context which provides
     39    ///information about and functionality for the current test run.
     40    ///</summary>
     41    public TestContext TestContext {
     42      get {
     43        return testContextInstance;
     44      }
     45      set {
     46        testContextInstance = value;
     47      }
     48    }
     49
     50    #region Additional test attributes
     51    //
     52    //You can use the following additional attributes as you write your tests:
     53    //
     54    //Use ClassInitialize to run code before running the first test in the class
     55    //[ClassInitialize()]
     56    //public static void MyClassInitialize(TestContext testContext)
     57    //{
     58    //}
     59    //
     60    //Use ClassCleanup to run code after all tests in a class have run
     61    //[ClassCleanup()]
     62    //public static void MyClassCleanup()
     63    //{
     64    //}
     65    //
     66    //Use TestInitialize to run code before running each test
     67    //[TestInitialize()]
     68    //public void MyTestInitialize()
     69    //{
     70    //}
     71    //
     72    //Use TestCleanup to run code after each test has run
     73    //[TestCleanup()]
     74    //public void MyTestCleanup()
     75    //{
     76    //}
     77    //
     78    #endregion
     79
     80
    3281    /// <summary>
    3382    ///A test for Apply
    3483    ///</summary>
    35     [TestMethod]
    36     [TestCategory("Encodings.Permutation")]
    37     [TestProperty("Time", "short")]
     84    [TestMethod()]
    3885    public void InversionManipulatorApplyTest() {
    3986      TestRandom random = new TestRandom();
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/MaximalPreservativeCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for MaximalPreservativeCrossover and is intended
     
    3132  [TestClass()]
    3233  public class MaximalPreservativeCrossoverTest {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void MaximalPreservativeCrossoverCrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4795        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4896          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    49       } catch (System.InvalidOperationException) {
     97      }
     98      catch (System.InvalidOperationException) {
    5099        exceptionFired = true;
    51100      }
     
    56105    ///A test for Apply
    57106    ///</summary>
    58     [TestMethod]
    59     [TestCategory("Encodings.Permutation")]
    60     [TestProperty("Time", "short")]
     107    [TestMethod()]
    61108    public void MaximalPreservativeCrossoverApplyTest() {
    62109      TestRandom random = new TestRandom();
     
    80127      try {
    81128        MaximalPreservativeCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    82       } catch (System.ArgumentException) {
     129      }
     130      catch (System.ArgumentException) {
    83131        exceptionFired = true;
    84132      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderBasedCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for OrderBasedCrossoverTest and is intended
     
    3132  [TestClass()]
    3233  public class OrderBasedCrossoverTest {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void OrderBasedCrossoverCrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4795        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4896          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    49       } catch (System.InvalidOperationException) {
     97      }
     98      catch (System.InvalidOperationException) {
    5099        exceptionFired = true;
    51100      }
     
    56105    ///A test for Apply
    57106    ///</summary>
    58     [TestMethod]
    59     [TestCategory("Encodings.Permutation")]
    60     [TestProperty("Time", "short")]
     107    [TestMethod()]
    61108    public void OrderBasedCrossoverApplyTest() {
    62109      TestRandom random = new TestRandom();
     
    78125      try {
    79126        OrderBasedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    80       } catch (System.ArgumentException) {
     127      }
     128      catch (System.ArgumentException) {
    81129        exceptionFired = true;
    82130      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderCrossover2Test.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for OrderCrossover2Test and is intended
     
    3132  [TestClass()]
    3233  public class OrderCrossover2Test {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void OrderCrossover2CrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4593        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4694          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    47       } catch (System.InvalidOperationException) {
     95      }
     96      catch (System.InvalidOperationException) {
    4897        exceptionFired = true;
    4998      }
     
    54103    ///A test for Apply
    55104    ///</summary>
    56     [TestMethod]
    57     [TestCategory("Encodings.Permutation")]
    58     [TestProperty("Time", "short")]
     105    [TestMethod()]
    59106    public void OrderCrossover2ApplyTest() {
    60107      TestRandom random = new TestRandom();
     
    78125      try {
    79126        OrderCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    80       } catch (System.ArgumentException) {
     127      }
     128      catch (System.ArgumentException) {
    81129        exceptionFired = true;
    82130      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/OrderCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for OrderCrossoverTest and is intended
     
    3132  [TestClass()]
    3233  public class OrderCrossoverTest {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void OrderCrossoverCrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4795        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4896          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    49       } catch (System.InvalidOperationException) {
     97      }
     98      catch (System.InvalidOperationException) {
    5099        exceptionFired = true;
    51100      }
     
    56105    ///A test for Apply
    57106    ///</summary>
    58     [TestMethod]
    59     [TestCategory("Encodings.Permutation")]
    60     [TestProperty("Time", "short")]
     107    [TestMethod()]
    61108    public void OrderCrossoverApplyTest() {
    62109      TestRandom random = new TestRandom();
     
    131178      try {
    132179        OrderCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    133       } catch (System.ArgumentException) {
     180      }
     181      catch (System.ArgumentException) {
    134182        exceptionFired = true;
    135183      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PartiallyMatchedCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for PartiallyMatchedCrossover and is intended
     
    3132  [TestClass()]
    3233  public class PartiallyMatchedCrossoverTest {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void PartiallyMatchedCrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4795        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4896          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    49       } catch (System.InvalidOperationException) {
     97      }
     98      catch (System.InvalidOperationException) {
    5099        exceptionFired = true;
    51100      }
     
    56105    ///A test for Apply
    57106    ///</summary>
    58     [TestMethod]
    59     [TestCategory("Encodings.Permutation")]
    60     [TestProperty("Time", "short")]
     107    [TestMethod()]
    61108    public void PartiallyMatchedCrossoverApplyTest() {
    62109      TestRandom random = new TestRandom();
     
    92139      try {
    93140        PartiallyMatchedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    94       } catch (System.ArgumentException) {
     141      }
     142      catch (System.ArgumentException) {
    95143        exceptionFired = true;
    96144      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PermutationEqualityComparerTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    2324
    24 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     25namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2526  [TestClass]
    2627  public class PermutationEqualityComparerTest {
    2728    [TestMethod]
    28     [TestCategory("Encodings.Permutation")]
    29     [TestProperty("Time", "short")]
    3029    public void TestPermutationEqualityComparer() {
    3130      PermutationEqualityComparer comparer = new PermutationEqualityComparer();
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/PositionBasedCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for PositionBasedCrossover and is intended
     
    3132  [TestClass()]
    3233  public class PositionBasedCrossoverTest {
     34
     35
     36    private TestContext testContextInstance;
     37
     38    /// <summary>
     39    ///Gets or sets the test context which provides
     40    ///information about and functionality for the current test run.
     41    ///</summary>
     42    public TestContext TestContext {
     43      get {
     44        return testContextInstance;
     45      }
     46      set {
     47        testContextInstance = value;
     48      }
     49    }
     50
     51    #region Additional test attributes
     52    //
     53    //You can use the following additional attributes as you write your tests:
     54    //
     55    //Use ClassInitialize to run code before running the first test in the class
     56    //[ClassInitialize()]
     57    //public static void MyClassInitialize(TestContext testContext)
     58    //{
     59    //}
     60    //
     61    //Use ClassCleanup to run code after all tests in a class have run
     62    //[ClassCleanup()]
     63    //public static void MyClassCleanup()
     64    //{
     65    //}
     66    //
     67    //Use TestInitialize to run code before running each test
     68    //[TestInitialize()]
     69    //public void MyTestInitialize()
     70    //{
     71    //}
     72    //
     73    //Use TestCleanup to run code after each test has run
     74    //[TestCleanup()]
     75    //public void MyTestCleanup()
     76    //{
     77    //}
     78    //
     79    #endregion
     80
     81
    3382    /// <summary>
    3483    ///A test for Cross
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
     86    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    3987    public void PositionBasedCrossoverCrossTest() {
    4088      TestRandom random = new TestRandom();
     
    4896        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    4997          new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4) }));
    50       } catch (System.InvalidOperationException) {
     98      }
     99      catch (System.InvalidOperationException) {
    51100        exceptionFired = true;
    52101      }
     
    57106    ///A test for Apply
    58107    ///</summary>
    59     [TestMethod]
    60     [TestCategory("Encodings.Permutation")]
    61     [TestProperty("Time", "short")]
     108    [TestMethod()]
     109    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    62110    public void PositionBasedCrossoverApplyTest() {
    63111      TestRandom random = new TestRandom();
     
    83131      try {
    84132        PositionBasedCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6));
    85       } catch (System.ArgumentException) {
     133      }
     134      catch (System.ArgumentException) {
    86135        exceptionFired = true;
    87136      }
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/ScrambleManipulatorTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using HeuristicLab.Tests;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    2425
    25 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     26namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2627  /// <summary>
    2728  ///This is a test class for ScrambleManipulator and is intended
     
    3031  [TestClass()]
    3132  public class ScrambleManipulatorTest {
     33
     34
     35    private TestContext testContextInstance;
     36
     37    /// <summary>
     38    ///Gets or sets the test context which provides
     39    ///information about and functionality for the current test run.
     40    ///</summary>
     41    public TestContext TestContext {
     42      get {
     43        return testContextInstance;
     44      }
     45      set {
     46        testContextInstance = value;
     47      }
     48    }
     49
     50    #region Additional test attributes
     51    //
     52    //You can use the following additional attributes as you write your tests:
     53    //
     54    //Use ClassInitialize to run code before running the first test in the class
     55    //[ClassInitialize()]
     56    //public static void MyClassInitialize(TestContext testContext)
     57    //{
     58    //}
     59    //
     60    //Use ClassCleanup to run code after all tests in a class have run
     61    //[ClassCleanup()]
     62    //public static void MyClassCleanup()
     63    //{
     64    //}
     65    //
     66    //Use TestInitialize to run code before running each test
     67    //[TestInitialize()]
     68    //public void MyTestInitialize()
     69    //{
     70    //}
     71    //
     72    //Use TestCleanup to run code after each test has run
     73    //[TestCleanup()]
     74    //public void MyTestCleanup()
     75    //{
     76    //}
     77    //
     78    #endregion
     79
     80
    3281    /// <summary>
    3382    ///A test for Apply
    3483    ///</summary>
    35     [TestMethod]
    36     [TestCategory("Encodings.Permutation")]
    37     [TestProperty("Time", "short")]
     84    [TestMethod()]
    3885    public void ScrambleManipulatorApplyTest() {
    3986      TestRandom random = new TestRandom();
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/Swap2ManipulatorTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using HeuristicLab.Tests;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    2425
    25 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     26namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2627  /// <summary>
    2728  ///This is a test class for Swap2Manipulator and is intended
     
    3031  [TestClass()]
    3132  public class Swap2ManipulatorTest {
     33
     34
     35    private TestContext testContextInstance;
     36
     37    /// <summary>
     38    ///Gets or sets the test context which provides
     39    ///information about and functionality for the current test run.
     40    ///</summary>
     41    public TestContext TestContext {
     42      get {
     43        return testContextInstance;
     44      }
     45      set {
     46        testContextInstance = value;
     47      }
     48    }
     49
     50    #region Additional test attributes
     51    //
     52    //You can use the following additional attributes as you write your tests:
     53    //
     54    //Use ClassInitialize to run code before running the first test in the class
     55    //[ClassInitialize()]
     56    //public static void MyClassInitialize(TestContext testContext)
     57    //{
     58    //}
     59    //
     60    //Use ClassCleanup to run code after all tests in a class have run
     61    //[ClassCleanup()]
     62    //public static void MyClassCleanup()
     63    //{
     64    //}
     65    //
     66    //Use TestInitialize to run code before running each test
     67    //[TestInitialize()]
     68    //public void MyTestInitialize()
     69    //{
     70    //}
     71    //
     72    //Use TestCleanup to run code after each test has run
     73    //[TestCleanup()]
     74    //public void MyTestCleanup()
     75    //{
     76    //}
     77    //
     78    #endregion
     79
     80
    3281    /// <summary>
    3382    ///A test for Apply
    3483    ///</summary>
    35     [TestMethod]
    36     [TestCategory("Encodings.Permutation")]
    37     [TestProperty("Time", "short")]
     84    [TestMethod()]
    3885    public void Swap2ManipulatorApplyTest() {
    3986      TestRandom random = new TestRandom();
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/Swap3ManipulatorTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using HeuristicLab.Tests;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    2425
    25 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     26namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2627  /// <summary>
    2728  ///This is a test class for Swap3Manipulator and is intended
     
    3031  [TestClass()]
    3132  public class Swap3ManipulatorTest {
     33
     34
     35    private TestContext testContextInstance;
     36
     37    /// <summary>
     38    ///Gets or sets the test context which provides
     39    ///information about and functionality for the current test run.
     40    ///</summary>
     41    public TestContext TestContext {
     42      get {
     43        return testContextInstance;
     44      }
     45      set {
     46        testContextInstance = value;
     47      }
     48    }
     49
     50    #region Additional test attributes
     51    //
     52    //You can use the following additional attributes as you write your tests:
     53    //
     54    //Use ClassInitialize to run code before running the first test in the class
     55    //[ClassInitialize()]
     56    //public static void MyClassInitialize(TestContext testContext)
     57    //{
     58    //}
     59    //
     60    //Use ClassCleanup to run code after all tests in a class have run
     61    //[ClassCleanup()]
     62    //public static void MyClassCleanup()
     63    //{
     64    //}
     65    //
     66    //Use TestInitialize to run code before running each test
     67    //[TestInitialize()]
     68    //public void MyTestInitialize()
     69    //{
     70    //}
     71    //
     72    //Use TestCleanup to run code after each test has run
     73    //[TestCleanup()]
     74    //public void MyTestCleanup()
     75    //{
     76    //}
     77    //
     78    #endregion
     79
     80
    3281    /// <summary>
    3382    ///A test for Apply
    3483    ///</summary>
    35     [TestMethod]
    36     [TestCategory("Encodings.Permutation")]
    37     [TestProperty("Time", "short")]
     84    [TestMethod()]
    3885    public void Swap3ManipulatorApplyTest() {
    3986      TestRandom random = new TestRandom();
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/TranslocationInversionManipulatorTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using HeuristicLab.Tests;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    2425
    25 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     26namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2627  /// <summary>
    2728  ///This is a test class for TranslocationInversionManipulator and is intended
     
    3031  [TestClass()]
    3132  public class TranslocationInversionManipulatorTest {
     33
     34
     35    private TestContext testContextInstance;
     36
     37    /// <summary>
     38    ///Gets or sets the test context which provides
     39    ///information about and functionality for the current test run.
     40    ///</summary>
     41    public TestContext TestContext {
     42      get {
     43        return testContextInstance;
     44      }
     45      set {
     46        testContextInstance = value;
     47      }
     48    }
     49
     50    #region Additional test attributes
     51    //
     52    //You can use the following additional attributes as you write your tests:
     53    //
     54    //Use ClassInitialize to run code before running the first test in the class
     55    //[ClassInitialize()]
     56    //public static void MyClassInitialize(TestContext testContext)
     57    //{
     58    //}
     59    //
     60    //Use ClassCleanup to run code after all tests in a class have run
     61    //[ClassCleanup()]
     62    //public static void MyClassCleanup()
     63    //{
     64    //}
     65    //
     66    //Use TestInitialize to run code before running each test
     67    //[TestInitialize()]
     68    //public void MyTestInitialize()
     69    //{
     70    //}
     71    //
     72    //Use TestCleanup to run code after each test has run
     73    //[TestCleanup()]
     74    //public void MyTestCleanup()
     75    //{
     76    //}
     77    //
     78    #endregion
     79
     80
    3281    /// <summary>
    3382    ///A test for Apply
    3483    ///</summary>
    35     [TestMethod]
    36     [TestCategory("Encodings.Permutation")]
    37     [TestProperty("Time", "short")]
     84    [TestMethod()]
    3885    public void TranslocationInversionManipulatorApplyTest() {
    3986      TestRandom random = new TestRandom();
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/TranslocationManipulatorTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
     22using HeuristicLab.Encodings.PermutationEncoding;
    2223using HeuristicLab.Tests;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    2425
    25 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     26namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    2627  /// <summary>
    2728  ///This is a test class for TranslocationManipulator and is intended
     
    3031  [TestClass()]
    3132  public class TranslocationManipulatorTest {
     33
     34
     35    private TestContext testContextInstance;
     36
     37    /// <summary>
     38    ///Gets or sets the test context which provides
     39    ///information about and functionality for the current test run.
     40    ///</summary>
     41    public TestContext TestContext {
     42      get {
     43        return testContextInstance;
     44      }
     45      set {
     46        testContextInstance = value;
     47      }
     48    }
     49
     50    #region Additional test attributes
     51    //
     52    //You can use the following additional attributes as you write your tests:
     53    //
     54    //Use ClassInitialize to run code before running the first test in the class
     55    //[ClassInitialize()]
     56    //public static void MyClassInitialize(TestContext testContext)
     57    //{
     58    //}
     59    //
     60    //Use ClassCleanup to run code after all tests in a class have run
     61    //[ClassCleanup()]
     62    //public static void MyClassCleanup()
     63    //{
     64    //}
     65    //
     66    //Use TestInitialize to run code before running each test
     67    //[TestInitialize()]
     68    //public void MyTestInitialize()
     69    //{
     70    //}
     71    //
     72    //Use TestCleanup to run code after each test has run
     73    //[TestCleanup()]
     74    //public void MyTestCleanup()
     75    //{
     76    //}
     77    //
     78    #endregion
     79
     80
    3281    /// <summary>
    3382    ///A test for Apply
    3483    ///</summary>
    35     [TestMethod]
    36     [TestCategory("Encodings.Permutation")]
    37     [TestProperty("Time", "short")]
     84    [TestMethod()]
    3885    public void TranslocationManipulatorApplyTest() {
    3986      TestRandom random = new TestRandom();
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/UniformLikeCrossoverTest.cs

    r11202 r11203  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Encodings.PermutationEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.PermutationEncoding.Tests {
     27namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
     28
     29
    2730  /// <summary>
    2831  ///This is a test class for UniformLikeCrossoverTest and is intended
     
    3134  [TestClass()]
    3235  public class UniformLikeCrossoverTest {
     36
     37
     38    private TestContext testContextInstance;
     39
     40    /// <summary>
     41    ///Gets or sets the test context which provides
     42    ///information about and functionality for the current test run.
     43    ///</summary>
     44    public TestContext TestContext {
     45      get {
     46        return testContextInstance;
     47      }
     48      set {
     49        testContextInstance = value;
     50      }
     51    }
     52
     53    #region Additional test attributes
     54    //
     55    //You can use the following additional attributes as you write your tests:
     56    //
     57    //Use ClassInitialize to run code before running the first test in the class
     58    //[ClassInitialize()]
     59    //public static void MyClassInitialize(TestContext testContext)
     60    //{
     61    //}
     62    //
     63    //Use ClassCleanup to run code after all tests in a class have run
     64    //[ClassCleanup()]
     65    //public static void MyClassCleanup()
     66    //{
     67    //}
     68    //
     69    //Use TestInitialize to run code before running each test
     70    //[TestInitialize()]
     71    //public void MyTestInitialize()
     72    //{
     73    //}
     74    //
     75    //Use TestCleanup to run code after each test has run
     76    //[TestCleanup()]
     77    //public void MyTestCleanup()
     78    //{
     79    //}
     80    //
     81    #endregion
     82
     83
    3384    /// <summary>
    3485    ///A test for Apply
    3586    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.Permutation")]
    38     [TestProperty("Time", "short")]
     87    [TestMethod()]
    3988    public void UniformLikeCrossoverApplyTest() {
    4089      // test from the paper
     
    58107    ///A test for Cross
    59108    ///</summary>
    60     [TestMethod]
    61     [TestCategory("Encodings.Permutation")]
    62     [TestProperty("Time", "short")]
     109    [TestMethod()]
     110    [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")]
    63111    public void UniformLikeCrossoverCrossTest() {
    64112      UniformLikeCrossover_Accessor target = new UniformLikeCrossover_Accessor();
Note: See TracChangeset for help on using the changeset viewer.