Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/16 18:24:53 (8 years ago)
Author:
mkommend
Message:

#1087: Copied unit tests from branch and adapted path of multi-objective test function project file.

Location:
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions.MultiObjective-3.3
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions.MultiObjective-3.3/SpacingTest.cs

    r14111 r14121  
    2020#endregion
    2121using System;
    22 using HeuristicLab.Problems.TestFunctions.MultiObjective;
    2322using Microsoft.VisualStudio.TestTools.UnitTesting;
    2423
    25 namespace MultiObjectiveTestfunctionTests {
     24namespace HeuristicLab.Problems.TestFunctions.MultiObjective.Tests {
    2625  [TestClass]
    2726  public class SpacingTest {
    28 
    29 
    3027    [TestMethod]
    3128    [ExpectedException(typeof(ArgumentException))]
    32     [TestCategory("Problems.TestFunctions")]
     29    [TestCategory("Problems.TestFunctions.MultiObjective")]
    3330    [TestProperty("Time", "short")]
    34     public void EmptyFrontTest() {
     31    public void SpacingTestEmptyFront() {
    3532      double[][] front = { };
    3633
     
    3936
    4037    [TestMethod]
    41     [TestCategory("Problems.TestFunctions")]
     38    [TestCategory("Problems.TestFunctions.MultiObjective")]
    4239    [TestProperty("Time", "short")]
    43     public void SamePointTest() {
     40    public void SpacingTestSamePoint() {
    4441
    4542      double[] point = new double[2];
     
    5653
    5754    [TestMethod]
    58     [TestCategory("Problems.TestFunctions")]
     55    [TestCategory("Problems.TestFunctions.MultiObjective")]
    5956    [TestProperty("Time", "short")]
    60     public void SinglePointTest() {
     57    public void SpacingTestSinglePoint() {
    6158      double[] point = new double[2];
    6259      point[0] = 0;
     
    6865
    6966    [TestMethod]
    70     [TestCategory("Problems.TestFunctions")]
     67    [TestCategory("Problems.TestFunctions.MultiObjective")]
    7168    [TestProperty("Time", "short")]
    72     public void QuadraticTest() {
     69    public void SpacingTestQuadratic() {
    7370      double[] point = new double[2];
    7471      point[0] = 0;
     
    9087
    9188    [TestMethod]
    92     [TestCategory("Problems.TestFunctions")]
     89    [TestCategory("Problems.TestFunctions.MultiObjective")]
    9390    [TestProperty("Time", "short")]
    94     public void RectangularTest() {
     91    public void SpacingTestRectangular() {
    9592      double[] point = new double[2];
    9693      point[0] = 0;
     
    117114    /// </summary>
    118115    [TestMethod]
    119     [TestCategory("Problems.TestFunctions")]
     116    [TestCategory("Problems.TestFunctions.MultiObjective")]
    120117    [TestProperty("Time", "short")]
    121     public void DeltoidTest() {
     118    public void SpacingTestDeltoid() {
    122119      double[] point = new double[2];
    123120      point[0] = 0;
     
    137134      Assert.AreEqual(Math.Sqrt(3), dist);
    138135    }
    139 
    140 
    141136  }
    142 
    143 
    144137}
Note: See TracChangeset for help on using the changeset viewer.