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:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources

  • branches/HiveStatistics/sources/HeuristicLab.Tests

  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-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.BinaryVectorEncoding.Tests {
     22using HeuristicLab.Encodings.BinaryVectorEncoding;
     23
     24namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
    2325  public static class Auxiliary {
    2426    public static bool BinaryVectorIsEqualByPosition(BinaryVector p1, BinaryVector p2) {
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/NPointCrossoverTest.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.
     
    2222using HeuristicLab.Core;
    2323using HeuristicLab.Data;
     24using HeuristicLab.Encodings.BinaryVectorEncoding;
    2425using HeuristicLab.Tests;
    2526using Microsoft.VisualStudio.TestTools.UnitTesting;
    2627
    27 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests {
     28namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
     29
     30
    2831  /// <summary>
    2932  ///This is a test class for SinglePointCrossoverTest and is intended
     
    3235  [TestClass()]
    3336  public class NPointCrossoverTest {
     37
     38
     39    private TestContext testContextInstance;
     40
     41    /// <summary>
     42    ///Gets or sets the test context which provides
     43    ///information about and functionality for the current test run.
     44    ///</summary>
     45    public TestContext TestContext {
     46      get {
     47        return testContextInstance;
     48      }
     49      set {
     50        testContextInstance = value;
     51      }
     52    }
     53
     54    #region Additional test attributes
     55    //
     56    //You can use the following additional attributes as you write your tests:
     57    //
     58    //Use ClassInitialize to run code before running the first test in the class
     59    //[ClassInitialize()]
     60    //public static void MyClassInitialize(TestContext testContext)
     61    //{
     62    //}
     63    //
     64    //Use ClassCleanup to run code after all tests in a class have run
     65    //[ClassCleanup()]
     66    //public static void MyClassCleanup()
     67    //{
     68    //}
     69    //
     70    //Use TestInitialize to run code before running each test
     71    //[TestInitialize()]
     72    //public void MyTestInitialize()
     73    //{
     74    //}
     75    //
     76    //Use TestCleanup to run code after each test has run
     77    //[TestCleanup()]
     78    //public void MyTestCleanup()
     79    //{
     80    //}
     81    //
     82    #endregion
     83
    3484    /// <summary>
    3585    ///A test for Cross
    3686    ///</summary>
    37     [TestMethod]
    38     [TestCategory("Encodings.BinaryVector")]
    39     [TestProperty("Time", "short")]
     87    [TestMethod()]
     88    [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")]
    4089    public void NPointCrossoverCrossTest() {
    4190      NPointCrossover_Accessor target = new NPointCrossover_Accessor(new PrivateObject(typeof(NPointCrossover)));
     
    5099        BinaryVector actual;
    51100        actual = target.Cross(random, parents);
    52       } catch (System.ArgumentException) {
     101      }
     102      catch (System.ArgumentException) {
    53103        exceptionFired = true;
    54104      }
     
    61111        BinaryVector actual;
    62112        actual = target.Cross(random, parents);
    63       } catch (System.ArgumentException) {
     113      }
     114      catch (System.ArgumentException) {
    64115        exceptionFired = true;
    65116      }
     
    70121    ///A test for Apply
    71122    ///</summary>
    72     [TestMethod]
    73     [TestCategory("Encodings.BinaryVector")]
    74     [TestProperty("Time", "short")]
     123    [TestMethod()]
    75124    public void NPointCrossoverApplyTest() {
    76125      TestRandom random = new TestRandom();
     
    116165      try {
    117166        actual = NPointCrossover.Apply(random, parent1, parent2, n);
    118       } catch (System.ArgumentException) {
     167      }
     168      catch (System.ArgumentException) {
    119169        exceptionFired = true;
    120170      }
    121171      Assert.IsTrue(exceptionFired);
    122172    }
     173
     174    /// <summary>
     175    ///A test for SinglePointCrossover Constructor
     176    ///</summary>
     177    [TestMethod()]
     178    public void NPointCrossoverConstructorTest() {
     179      NPointCrossover target = new NPointCrossover();
     180    }
    123181  }
    124182}
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePointCrossoverTest.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 using System;
    2322using HeuristicLab.Core;
     23using HeuristicLab.Encodings.BinaryVectorEncoding;
    2424using HeuristicLab.Tests;
    2525using Microsoft.VisualStudio.TestTools.UnitTesting;
    2626
    27 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests {
     27namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
     28
     29
    2830  /// <summary>
    2931  ///This is a test class for SinglePointCrossoverTest and is intended
     
    3234  [TestClass()]
    3335  public class SinglePointCrossoverTest {
     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
    3483    /// <summary>
    3584    ///A test for Cross
    3685    ///</summary>
    37     [TestMethod]
    38     [TestCategory("Encodings.BinaryVector")]
    39     [TestProperty("Time", "short")]
     86    [TestMethod()]
     87    [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")]
    4088    public void SinglePointCrossoverCrossTest() {
    4189      SinglePointCrossover_Accessor target = new SinglePointCrossover_Accessor(new PrivateObject(typeof(SinglePointCrossover)));
     
    5098        BinaryVector actual;
    5199        actual = target.Cross(random, parents);
    52       } catch (ArgumentException) {
     100      }
     101      catch (System.ArgumentException) {
    53102        exceptionFired = true;
    54103      }
     
    61110        BinaryVector actual;
    62111        actual = target.Cross(random, parents);
    63       } catch (ArgumentException) {
     112      }
     113      catch (System.ArgumentException) {
    64114        exceptionFired = true;
    65115      }
    66116      Assert.IsTrue(exceptionFired);
    67117    }
     118
     119    /// <summary>
     120    ///A test for SinglePointCrossover Constructor
     121    ///</summary>
     122    [TestMethod()]
     123    public void SinglePointCrossoverConstructorTest() {
     124      SinglePointCrossover target = new SinglePointCrossover();
     125    }
    68126  }
    69127}
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePositionBitflipManipulatorTest.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.BinaryVectorEncoding;
    2223using HeuristicLab.Tests;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    2425
    25 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests {
     26namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
    2627  /// <summary>
    2728  ///This is a test class for SinglePositionBitflipManipulator and is intended
     
    3031  [TestClass()]
    3132  public class SinglePositionBitflipManipulatorTest {
     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.BinaryVector")]
    37     [TestProperty("Time", "short")]
     84    [TestMethod()]
    3885    public void SinglePositionBitflipManipulatorApplyTest() {
    3986      TestRandom random = new TestRandom();
     
    4996      Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(expected, parent));
    5097    }
     98
     99    /// <summary>
     100    ///A test for SinglePositionBitflipManipulator Constructor
     101    ///</summary>
     102    [TestMethod()]
     103    public void SinglePositionBitflipManipulatorConstructorTest() {
     104      SinglePositionBitflipManipulator target = new SinglePositionBitflipManipulator();
     105    }
    51106  }
    52107}
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SomePositionsBitflipManipulatorTest.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.Data;
     23using HeuristicLab.Encodings.BinaryVectorEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests {
     27namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
    2728  /// <summary>
    2829  ///This is a test class for SomePositionsBitflipManipulator and is intended
     
    3132  [TestClass()]
    3233  public class SomePositionsBitflipManipulatorTest {
     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 Apply
    3584    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.BinaryVector")]
    38     [TestProperty("Time", "short")]
     85    [TestMethod()]
    3986    public void SomePositionsBitflipManipulatorApplyTest() {
    4087      TestRandom random = new TestRandom();
     
    5097      Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(expected, parent));
    5198    }
     99
     100    /// <summary>
     101    ///A test for SomePositionsBitflipManipulator Constructor
     102    ///</summary>
     103    [TestMethod()]
     104    public void SomePositionsBitflipManipulatorConstructorTest() {
     105      SomePositionsBitflipManipulator target = new SomePositionsBitflipManipulator();
     106    }
    52107  }
    53108}
  • branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/UniformCrossoverTest.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.BinaryVectorEncoding;
    2324using HeuristicLab.Tests;
    2425using Microsoft.VisualStudio.TestTools.UnitTesting;
    2526
    26 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests {
     27namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
     28
     29
    2730  /// <summary>
    2831  ///This is a test class for SinglePointCrossoverTest and is intended
     
    3134  [TestClass()]
    3235  public class UniformCrossoverTest {
     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
    3383    /// <summary>
    3484    ///A test for Cross
    3585    ///</summary>
    36     [TestMethod]
    37     [TestCategory("Encodings.BinaryVector")]
    38     [TestProperty("Time", "short")]
     86    [TestMethod()]
     87    [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")]
    3988    public void SinglePointCrossoverCrossTest() {
    4089      UniformCrossover_Accessor target = new UniformCrossover_Accessor(new PrivateObject(typeof(UniformCrossover)));
     
    4998        BinaryVector actual;
    5099        actual = target.Cross(random, parents);
    51       } catch (System.ArgumentException) {
     100      }
     101      catch (System.ArgumentException) {
    52102        exceptionFired = true;
    53103      }
     
    60110        BinaryVector actual;
    61111        actual = target.Cross(random, parents);
    62       } catch (System.ArgumentException) {
     112      }
     113      catch (System.ArgumentException) {
    63114        exceptionFired = true;
    64115      }
     
    69120    ///A test for Apply
    70121    ///</summary>
    71     [TestMethod]
    72     [TestCategory("Encodings.BinaryVector")]
    73     [TestProperty("Time", "short")]
     122    [TestMethod()]
    74123    public void SinglePointCrossoverApplyTest() {
    75124      TestRandom random = new TestRandom();
     
    102151      try {
    103152        actual = UniformCrossover.Apply(random, parent1, parent2);
    104       } catch (System.ArgumentException) {
     153      }
     154      catch (System.ArgumentException) {
    105155        exceptionFired = true;
    106156      }
    107157      Assert.IsTrue(exceptionFired);
    108158    }
     159
     160    /// <summary>
     161    ///A test for SinglePointCrossover Constructor
     162    ///</summary>
     163    [TestMethod()]
     164    public void SinglePointCrossoverConstructorTest() {
     165      NPointCrossover target = new NPointCrossover();
     166    }
    109167  }
    110168}
Note: See TracChangeset for help on using the changeset viewer.