Changeset 11202 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.RealVectorEncoding-3.3/BlendAlphaCrossoverTest.cs
- Timestamp:
- 07/18/14 12:01:13 (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.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 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.RealVectorEncoding-3.3/BlendAlphaCrossoverTest.cs
r7259 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Data; 24 using HeuristicLab.Encodings.RealVectorEncoding;25 24 using HeuristicLab.Tests; 26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 26 28 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { 29 30 27 namespace HeuristicLab.Encodings.RealVectorEncoding.Tests { 31 28 /// <summary> 32 29 ///This is a test class for BlendAlphaCrossoverTest and is intended … … 35 32 [TestClass()] 36 33 public class BlendAlphaCrossoverTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///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 attributes55 //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 class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 34 /// <summary> 85 35 ///A test for Cross 86 36 ///</summary> 87 37 [TestMethod()] 88 [DeploymentItem("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll")] 38 [TestCategory("Encodings.RealVector")] 39 [TestProperty("Time", "short")] 89 40 public void BlendAlphaCrossoverCrossTest() { 90 41 BlendAlphaCrossover_Accessor target = new BlendAlphaCrossover_Accessor(new PrivateObject(typeof(BlendAlphaCrossover))); … … 99 50 RealVector actual; 100 51 actual = target.Cross(random, parents); 101 } 102 catch (System.ArgumentException) { 52 } catch (System.ArgumentException) { 103 53 exceptionFired = true; 104 54 } … … 111 61 RealVector actual; 112 62 actual = target.Cross(random, parents); 113 } 114 catch (System.ArgumentException) { 63 } catch (System.ArgumentException) { 115 64 exceptionFired = true; 116 65 } … … 122 71 ///</summary> 123 72 [TestMethod()] 73 [TestCategory("Encodings.RealVector")] 74 [TestProperty("Time", "short")] 124 75 public void BlendAlphaCrossoverApplyTest() { 125 76 TestRandom random = new TestRandom(); … … 155 106 try { 156 107 actual = BlendAlphaCrossover.Apply(random, parent1, parent2, alpha); 157 } 158 catch (System.ArgumentException) { 108 } catch (System.ArgumentException) { 159 109 exceptionFired = true; 160 110 } … … 170 120 try { 171 121 actual = BlendAlphaCrossover.Apply(random, parent1, parent2, alpha); 172 } 173 catch (System.ArgumentException) { 122 } catch (System.ArgumentException) { 174 123 exceptionFired = true; 175 124 } 176 125 Assert.IsTrue(exceptionFired); 177 126 } 178 179 /// <summary>180 ///A test for BlendAlphaCrossover Constructor181 ///</summary>182 [TestMethod()]183 public void BlendAlphaCrossoverConstructorTest() {184 BlendAlphaCrossover target = new BlendAlphaCrossover();185 }186 127 } 187 128 }
Note: See TracChangeset
for help on using the changeset viewer.