Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/20/13 17:03:31 (11 years ago)
Author:
mkommend
Message:

#2088: Merged all changesets regarding the unit test restructuring in the stable branch.

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Tests

  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePointCrossoverTest.cs

    r9456 r9885  
    2020#endregion
    2121
     22using System;
    2223using HeuristicLab.Core;
    23 using HeuristicLab.Encodings.BinaryVectorEncoding;
    2424using HeuristicLab.Tests;
    2525using Microsoft.VisualStudio.TestTools.UnitTesting;
    2626
    27 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
    28 
    29 
     27namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests {
    3028  /// <summary>
    3129  ///This is a test class for SinglePointCrossoverTest and is intended
     
    3432  [TestClass()]
    3533  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 
    8334    /// <summary>
    8435    ///A test for Cross
    8536    ///</summary>
    86     [TestMethod()]
    87     [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")]
     37    [TestMethod]
     38    [TestCategory("Encodings.BinaryVector")]
     39    [TestProperty("Time", "short")]
    8840    public void SinglePointCrossoverCrossTest() {
    8941      SinglePointCrossover_Accessor target = new SinglePointCrossover_Accessor(new PrivateObject(typeof(SinglePointCrossover)));
     
    9850        BinaryVector actual;
    9951        actual = target.Cross(random, parents);
    100       }
    101       catch (System.ArgumentException) {
     52      } catch (ArgumentException) {
    10253        exceptionFired = true;
    10354      }
     
    11061        BinaryVector actual;
    11162        actual = target.Cross(random, parents);
    112       }
    113       catch (System.ArgumentException) {
     63      } catch (ArgumentException) {
    11464        exceptionFired = true;
    11565      }
    11666      Assert.IsTrue(exceptionFired);
    11767    }
    118 
    119     /// <summary>
    120     ///A test for SinglePointCrossover Constructor
    121     ///</summary>
    122     [TestMethod()]
    123     public void SinglePointCrossoverConstructorTest() {
    124       SinglePointCrossover target = new SinglePointCrossover();
    125     }
    12668  }
    12769}
Note: See TracChangeset for help on using the changeset viewer.