Changeset 9885 for stable/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePointCrossoverTest.cs
- Timestamp:
- 08/20/13 17:03:31 (11 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9764-9775,9777-9778,9782-9786,9792,9803,9806-9807,9810
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests merged: 9764-9775,9777-9778,9782-9786,9792,9803,9806
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests/HeuristicLab.Encodings.BinaryVectorEncoding-3.3/SinglePointCrossoverTest.cs
r9456 r9885 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.BinaryVectorEncoding;24 24 using HeuristicLab.Tests; 25 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 26 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests { 28 29 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding.Tests { 30 28 /// <summary> 31 29 ///This is a test class for SinglePointCrossoverTest and is intended … … 34 32 [TestClass()] 35 33 public class SinglePointCrossoverTest { 36 37 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///information about and functionality for the current test run.43 ///</summary>44 public TestContext TestContext {45 get {46 return testContextInstance;47 }48 set {49 testContextInstance = value;50 }51 }52 53 #region Additional test attributes54 //55 //You can use the following additional attributes as you write your tests:56 //57 //Use ClassInitialize to run code before running the first test in the class58 //[ClassInitialize()]59 //public static void MyClassInitialize(TestContext testContext)60 //{61 //}62 //63 //Use ClassCleanup to run code after all tests in a class have run64 //[ClassCleanup()]65 //public static void MyClassCleanup()66 //{67 //}68 //69 //Use TestInitialize to run code before running each test70 //[TestInitialize()]71 //public void MyTestInitialize()72 //{73 //}74 //75 //Use TestCleanup to run code after each test has run76 //[TestCleanup()]77 //public void MyTestCleanup()78 //{79 //}80 //81 #endregion82 83 34 /// <summary> 84 35 ///A test for Cross 85 36 ///</summary> 86 [TestMethod()] 87 [DeploymentItem("HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll")] 37 [TestMethod] 38 [TestCategory("Encodings.BinaryVector")] 39 [TestProperty("Time", "short")] 88 40 public void SinglePointCrossoverCrossTest() { 89 41 SinglePointCrossover_Accessor target = new SinglePointCrossover_Accessor(new PrivateObject(typeof(SinglePointCrossover))); … … 98 50 BinaryVector actual; 99 51 actual = target.Cross(random, parents); 100 } 101 catch (System.ArgumentException) { 52 } catch (ArgumentException) { 102 53 exceptionFired = true; 103 54 } … … 110 61 BinaryVector actual; 111 62 actual = target.Cross(random, parents); 112 } 113 catch (System.ArgumentException) { 63 } catch (ArgumentException) { 114 64 exceptionFired = true; 115 65 } 116 66 Assert.IsTrue(exceptionFired); 117 67 } 118 119 /// <summary>120 ///A test for SinglePointCrossover Constructor121 ///</summary>122 [TestMethod()]123 public void SinglePointCrossoverConstructorTest() {124 SinglePointCrossover target = new SinglePointCrossover();125 }126 68 } 127 69 }
Note: See TracChangeset
for help on using the changeset viewer.