Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/26/13 13:25:19 (11 years ago)
Author:
abeham
Message:

#2088: Added test attributes and cleaned up tests of the encodings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/SimulatedBinaryCrossoverTest.cs

    r9768 r9777  
    2222using HeuristicLab.Core;
    2323using HeuristicLab.Data;
    24 using HeuristicLab.Encodings.RealVectorEncoding;
    2524using HeuristicLab.Tests;
    2625using Microsoft.VisualStudio.TestTools.UnitTesting;
    2726
    2827namespace HeuristicLab.Encodings.RealVectorEncoding.Tests {
    29 
    30 
    3128  /// <summary>
    3229  ///This is a test class for SimulatedBinaryCrossoverTest and is intended
     
    3532  [TestClass()]
    3633  public class SimulatedBinaryCrossoverTest {
    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 
    8434    /// <summary>
    8535    ///A test for Cross
    8636    ///</summary>
    87     [TestMethod]
    88     [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")]
     37    [TestMethod()]
     38    [TestCategory("Encodings.RealVector")]
     39    [TestProperty("Time", "short")]
    8940    public void SimulatedBinaryCrossoverCrossTest() {
    9041      SimulatedBinaryCrossover_Accessor target = new SimulatedBinaryCrossover_Accessor(new PrivateObject(typeof(SimulatedBinaryCrossover)));
     
    11970    ///A test for Apply
    12071    ///</summary>
    121     [TestMethod]
     72    [TestMethod()]
     73    [TestCategory("Encodings.RealVector")]
     74    [TestProperty("Time", "short")]
    12275    public void SimulatedBinaryCrossoverApplyTest() {
    12376      TestRandom random = new TestRandom();
     
    161114      Assert.IsTrue(exceptionFired);
    162115    }
    163 
    164     /// <summary>
    165     ///A test for SimulatedBinaryCrossover Constructor
    166     ///</summary>
    167     [TestMethod]
    168     public void SimulatedBinaryCrossoverConstructorTest() {
    169       SimulatedBinaryCrossover target = new SimulatedBinaryCrossover();
    170     }
    171116  }
    172117}
Note: See TracChangeset for help on using the changeset viewer.