Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CyclicCrossover2Test.cs
- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.PermutationEncoding-3.3/CyclicCrossover2Test.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 23 24 using HeuristicLab.Tests; 24 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 26 26 namespace HeuristicLab.Encodings.PermutationEncoding .Tests {27 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 27 28 /// <summary> 28 29 ///This is a test class for CyclicCrossover2Test and is intended … … 31 32 [TestClass()] 32 33 public class CyclicCrossover2Test { 34 35 36 private TestContext testContextInstance; 37 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///information about and functionality for the current test run. 41 ///</summary> 42 public TestContext TestContext { 43 get { 44 return testContextInstance; 45 } 46 set { 47 testContextInstance = value; 48 } 49 } 50 51 #region Additional test attributes 52 // 53 //You can use the following additional attributes as you write your tests: 54 // 55 //Use ClassInitialize to run code before running the first test in the class 56 //[ClassInitialize()] 57 //public static void MyClassInitialize(TestContext testContext) 58 //{ 59 //} 60 // 61 //Use ClassCleanup to run code after all tests in a class have run 62 //[ClassCleanup()] 63 //public static void MyClassCleanup() 64 //{ 65 //} 66 // 67 //Use TestInitialize to run code before running each test 68 //[TestInitialize()] 69 //public void MyTestInitialize() 70 //{ 71 //} 72 // 73 //Use TestCleanup to run code after each test has run 74 //[TestCleanup()] 75 //public void MyTestCleanup() 76 //{ 77 //} 78 // 79 #endregion 80 81 33 82 /// <summary> 34 83 ///A test for Cross 35 84 ///</summary> 36 [TestMethod] 37 [TestCategory("Encodings.Permutation")] 38 [TestProperty("Time", "short")] 85 [TestMethod()] 86 [DeploymentItem("HeuristicLab.Encodings.PermutationEncoding-3.3.dll")] 39 87 public void CyclicCrossover2CrossTest() { 40 88 TestRandom random = new TestRandom(); … … 46 94 target.Cross(random, new ItemArray<Permutation>(new Permutation[] { 47 95 new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4), new Permutation(PermutationTypes.RelativeUndirected, 4)})); 48 } catch (System.InvalidOperationException) { 96 } 97 catch (System.InvalidOperationException) { 49 98 exceptionFired = true; 50 99 } … … 55 104 ///A test for Apply 56 105 ///</summary> 57 [TestMethod] 58 [TestCategory("Encodings.Permutation")] 59 [TestProperty("Time", "short")] 106 [TestMethod()] 60 107 public void CyclicCrossover2ApplyTest() { 61 108 TestRandom random = new TestRandom(); … … 79 126 try { 80 127 CyclicCrossover.Apply(random, new Permutation(PermutationTypes.RelativeUndirected, 8), new Permutation(PermutationTypes.RelativeUndirected, 6)); 81 } catch (System.ArgumentException) { 128 } 129 catch (System.ArgumentException) { 82 130 exceptionFired = true; 83 131 }
Note: See TracChangeset
for help on using the changeset viewer.