Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/17/15 19:45:30 (8 years ago)
Author:
ascheibe
Message:

#2510 adapted unit tests to VS 2015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/UniformLikeCrossoverTest.cs

    r12012 r13235  
    5454      Assert.IsTrue(Auxiliary.PermutationIsEqualByPosition(expected, actual));
    5555    }
    56 
    57     /// <summary>
    58     ///A test for Cross
    59     ///</summary>
    60     [TestMethod]
    61     [TestCategory("Encodings.Permutation")]
    62     [TestProperty("Time", "short")]
    63     public void UniformLikeCrossoverCrossTest() {
    64       UniformLikeCrossover_Accessor target = new UniformLikeCrossover_Accessor();
    65       IRandom random = new TestRandom(new int[] { }, new double[] { 0.1, 0.2, 0.3, 0.4 });
    66       random.Reset();
    67       bool exceptionFired = false;
    68       try {
    69         target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
    70           new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)}));
    71       } catch (System.InvalidOperationException) {
    72         exceptionFired = true;
    73       }
    74       Assert.IsTrue(exceptionFired);
    75     }
    7656  }
    7757}
Note: See TracChangeset for help on using the changeset viewer.