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

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Tests

  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/AllArchitectureAlteringOperatorsTest.cs

    r9456 r9885  
    2424using System.Diagnostics;
    2525using HeuristicLab.Data;
    26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2726using HeuristicLab.Random;
    2827using Microsoft.VisualStudio.TestTools.UnitTesting;
    2928
    30 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3130  [TestClass]
    3231  public class AllArchitectureAlteringOperatorsTest {
     
    3534    private const int MAX_TREE_LENGTH = 100;
    3635    private const int MAX_TREE_DEPTH = 10;
    37     private TestContext testContextInstance;
    3836
    39     /// <summary>
    40     ///Gets or sets the test context which provides
    41     ///information about and functionality for the current test run.
    42     ///</summary>
    43     public TestContext TestContext {
    44       get {
    45         return testContextInstance;
    46       }
    47       set {
    48         testContextInstance = value;
    49       }
    50     }
    51 
    52     [TestMethod()]
     37    [TestMethod]
    5338    [Timeout(3600000)]
     39    [TestCategory("Encodings.SymbolicExpressionTree")]
     40    [TestProperty("Time", "long")]
    5441    public void AllArchitectureAlteringOperatorsDistributionTest() {
    5542      var trees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/ArgumentCreaterTest.cs

    r9456 r9885  
    2727using Microsoft.VisualStudio.TestTools.UnitTesting;
    2828
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3030  [TestClass]
    3131  public class ArgumentCreaterTest {
     
    3333    private const int MAX_TREE_LENGTH = 100;
    3434    private const int MAX_TREE_DEPTH = 10;
    35     private TestContext testContextInstance;
    3635
    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     [TestMethod()]
     36    [TestMethod]
     37    [TestCategory("Encodings.SymbolicExpressionTree")]
     38    [TestProperty("Time", "long")]
    5139    public void ArgumentCreaterDistributionsTest() {
    5240      var trees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/ArgumentDeleterTest.cs

    r9456 r9885  
    2727using Microsoft.VisualStudio.TestTools.UnitTesting;
    2828
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3030  [TestClass]
    3131  public class ArgumentDeleterTest {
     
    3333    private const int MAX_TREE_LENGTH = 100;
    3434    private const int MAX_TREE_DEPTH = 10;
    35     private TestContext testContextInstance;
    3635
    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     [TestMethod()]
     36    [TestMethod]
     37    [TestCategory("Encodings.SymbolicExpressionTree")]
     38    [TestProperty("Time", "long")]
    5139    public void ArgumentDeleterDistributionsTest() {
    5240      var trees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/ArgumentDuplicaterTest.cs

    r9456 r9885  
    2727using Microsoft.VisualStudio.TestTools.UnitTesting;
    2828
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3030  [TestClass]
    3131  public class ArgumentDuplicaterTest {
     
    3333    private const int MAX_TREE_LENGTH = 100;
    3434    private const int MAX_TREE_DEPTH = 10;
    35     private TestContext testContextInstance;
    3635
    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     [TestMethod()]
     36    [TestMethod]
     37    [TestCategory("Encodings.SymbolicExpressionTree")]
     38    [TestProperty("Time", "long")]
    5139    public void ArgumentDuplicaterDistributionsTest() {
    5240      var trees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/ChangeNodeTypeManipulationTest.cs

    r9456 r9885  
    2626using Microsoft.VisualStudio.TestTools.UnitTesting;
    2727
    28 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     28namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    2929  [TestClass]
    3030  public class ChangeNodeTypeManipulationTest {
     
    3232    private const int MAX_TREE_LENGTH = 100;
    3333    private const int MAX_TREE_DEPTH = 10;
    34     private TestContext testContextInstance;
    3534
    36     /// <summary>
    37     ///Gets or sets the test context which provides
    38     ///information about and functionality for the current test run.
    39     ///</summary>
    40     public TestContext TestContext {
    41       get {
    42         return testContextInstance;
    43       }
    44       set {
    45         testContextInstance = value;
    46       }
    47     }
    48 
    49     [TestMethod()]
     35    [TestMethod]
     36    [TestCategory("Encodings.SymbolicExpressionTree")]
     37    [TestProperty("Time", "medium")]
    5038    public void ChangeNodeTypeManipulationDistributionsTest() {
    5139      SymbolicExpressionTreeStringFormatter formatter = new SymbolicExpressionTreeStringFormatter();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/FullTreeCreatorTest.cs

    r9456 r9885  
    2727using Microsoft.VisualStudio.TestTools.UnitTesting;
    2828
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3030  [TestClass]
    3131  public class FullTreeCreatorTest {
     
    3333    private const int MAX_TREE_DEPTH = 9;
    3434    private const int MAX_TREE_LENGTH = 256;
    35     private TestContext testContextInstance;
    3635
    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     [TestMethod()]
     36    [TestMethod]
     37    [TestCategory("Encodings.SymbolicExpressionTree")]
     38    [TestProperty("Time", "long")]
    5139    public void FullTreeCreatorDistributionsTest() {
    5240      var randomTrees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/Grammars.cs

    r9456 r9885  
    2424using HeuristicLab.Problems.DataAnalysis.Symbolic;
    2525
    26 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     26namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    2727  public static class Grammars {
    2828    public static ISymbolicExpressionGrammar CreateSimpleArithmeticGrammar() {
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/GrowTreeCreatorTest.cs

    r9456 r9885  
    2727using Microsoft.VisualStudio.TestTools.UnitTesting;
    2828
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3030  [TestClass]
    3131  public class GrowTreeCreatorTest {
     
    3333    private const int MAX_TREE_DEPTH = 10;
    3434    private const int MAX_TREE_LENGTH = 50;
    35     private TestContext testContextInstance;
    3635
    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     [TestMethod()]
     36    [TestMethod]
     37    [TestCategory("Encodings.SymbolicExpressionTree")]
     38    [TestProperty("Time", "long")]
    5139    public void GrowTreeCreatorDistributionsTest() {
    5240      var randomTrees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/ProbabilisticTreeCreaterTest.cs

    r9456 r9885  
    2727using Microsoft.VisualStudio.TestTools.UnitTesting;
    2828
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3030  [TestClass]
    3131  public class ProbabilisticTreeCreaterTest {
     
    3333    private const int MAX_TREE_LENGTH = 100;
    3434    private const int MAX_TREE_DEPTH = 10;
    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     }
    4935
    5036    [TestMethod()]
     37    [TestCategory("Encodings.SymbolicExpressionTree")]
     38    [TestProperty("Time", "long")]
    5139    public void ProbabilisticTreeCreaterDistributionsTest() {
    5240      var randomTrees = new List<ISymbolicExpressionTree>();
     
    8472
    8573    [TestMethod]
     74    [TestCategory("Encodings.SymbolicExpressionTree")]
     75    [TestProperty("Time", "short")]
    8676    public void ProbabilisticTreeCreatorSpecificTreeSizesTest() {
    8777      var trees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/ReplaceBranchManipulationTest.cs

    r9456 r9885  
    2626using Microsoft.VisualStudio.TestTools.UnitTesting;
    2727
    28 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     28namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    2929  [TestClass]
    3030  public class ReplaceBranchManipulationTest {
     
    3232    private const int MAX_TREE_LENGTH = 100;
    3333    private const int MAX_TREE_DEPTH = 10;
    34     private TestContext testContextInstance;
    3534
    36     /// <summary>
    37     ///Gets or sets the test context which provides
    38     ///information about and functionality for the current test run.
    39     ///</summary>
    40     public TestContext TestContext {
    41       get {
    42         return testContextInstance;
    43       }
    44       set {
    45         testContextInstance = value;
    46       }
    47     }
    48 
    49     [TestMethod()]
     35    [TestMethod]
     36    [TestCategory("Encodings.SymbolicExpressionTree")]
     37    [TestProperty("Time", "long")]
    5038    public void ReplaceBranchManipulationDistributionsTest() {
    5139      SymbolicExpressionTreeStringFormatter formatter = new SymbolicExpressionTreeStringFormatter();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubroutineCreaterTest.cs

    r9456 r9885  
    2222using System;
    2323using System.Collections.Generic;
    24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2524using HeuristicLab.Random;
    2625using Microsoft.VisualStudio.TestTools.UnitTesting;
    2726
    28 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     27namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    2928  [TestClass]
    3029  public class SubroutineCreaterTest {
     
    3231    private const int MAX_TREE_LENGTH = 100;
    3332    private const int MAX_TREE_DEPTH = 10;
    34     private TestContext testContextInstance;
    3533
    36     /// <summary>
    37     ///Gets or sets the test context which provides
    38     ///information about and functionality for the current test run.
    39     ///</summary>
    40     public TestContext TestContext {
    41       get {
    42         return testContextInstance;
    43       }
    44       set {
    45         testContextInstance = value;
    46       }
    47     }
    48 
    49     [TestMethod()]
     34    [TestMethod]
     35    [TestCategory("Encodings.SymbolicExpressionTree")]
     36    [TestProperty("Time", "long")]
    5037    public void SubroutineCreaterDistributionsTest() {
    5138      var trees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubroutineDeleterTest.cs

    r9456 r9885  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2625using HeuristicLab.Random;
    2726using Microsoft.VisualStudio.TestTools.UnitTesting;
    2827
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     28namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3029  [TestClass]
    3130  public class SubroutineDeleterTest {
     
    3332    private const int MAX_TREE_LENGTH = 100;
    3433    private const int MAX_TREE_DEPTH = 10;
    35     private TestContext testContextInstance;
    3634
    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     [TestMethod()]
     35    [TestMethod]
     36    [TestCategory("Encodings.SymbolicExpressionTree")]
     37    [TestProperty("Time", "long")]
    5138    public void SubroutineDeleterDistributionsTest() {
    5239      var trees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubroutineDuplicaterTest.cs

    r9456 r9885  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2625using HeuristicLab.Random;
    2726using Microsoft.VisualStudio.TestTools.UnitTesting;
    2827
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     28namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3029  [TestClass]
    3130  public class SubroutineDuplicaterTest {
     
    3332    private const int MAX_TREE_LENGTH = 100;
    3433    private const int MAX_TREE_DEPTH = 10;
    35     private TestContext testContextInstance;
    3634
    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     [TestMethod()]
     35    [TestMethod]
     36    [TestCategory("Encodings.SymbolicExpressionTree")]
     37    [TestProperty("Time", "long")]
    5138    public void SubroutineDuplicaterDistributionsTest() {
    5239      var trees = new List<ISymbolicExpressionTree>();
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubtreeCrossoverTest.cs

    r9456 r9885  
    2323using System.Collections.Generic;
    2424using System.Diagnostics;
    25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2625using HeuristicLab.Random;
    2726using Microsoft.VisualStudio.TestTools.UnitTesting;
    2827
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     28namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3029  [TestClass]
    3130  public class SubtreeCrossoverTest {
    3231    private const int POPULATION_SIZE = 1000;
    33     private TestContext testContextInstance;
    3432
    35     /// <summary>
    36     ///Gets or sets the test context which provides
    37     ///information about and functionality for the current test run.
    38     ///</summary>
    39     public TestContext TestContext {
    40       get {
    41         return testContextInstance;
    42       }
    43       set {
    44         testContextInstance = value;
    45       }
    46     }
    47 
    48     [TestMethod()]
     33    [TestMethod]
     34    [TestCategory("Encodings.SymbolicExpressionTree")]
     35    [TestProperty("Time", "long")]
    4936    public void SubtreeCrossoverDistributionsTest() {
    5037      int generations = 5;
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/Util.cs

    r9456 r9885  
    2727using Microsoft.VisualStudio.TestTools.UnitTesting;
    2828
    29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests {
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Tests {
    3030  public static class Util {
    3131    public static string GetSizeDistributionString(IList<ISymbolicExpressionTree> trees, int maxTreeLength, int binSize) {
Note: See TracChangeset for help on using the changeset viewer.