Changeset 13729 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests/HyperVolumeTests.cs
- Timestamp:
- 03/24/16 14:12:21 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests/HyperVolumeTests.cs
r13673 r13729 43 43 /// </summary> 44 44 [TestMethod] 45 [TestCategory("Problems.TestFunctions")] 46 [TestProperty("Time", "short")] 45 47 public void SinglePointTest() { 46 48 … … 98 100 /// </summary> 99 101 [TestMethod] 102 [TestCategory("Problems.TestFunctions")] 103 [TestProperty("Time", "short")] 100 104 public void RandomSinglePointTest() { 101 105 //Front with a single Point … … 133 137 referencePoint[1] = 0; 134 138 double se = Hypervolume.Calculate(front, referencePoint, maximization); 135 Assert.AreEqual(1.0, ne + se + nw + sw );139 Assert.AreEqual(1.0, ne + se + nw + sw, 1e8); 136 140 } 137 141 … … 149 153 /// </summary> 150 154 [TestMethod] 155 [TestCategory("Problems.TestFunctions")] 156 [TestProperty("Time", "short")] 151 157 public void DiagonalPointTest() { 152 158 //Front with three points … … 197 203 [TestMethod()] 198 204 [ExpectedException(typeof(ArgumentException))] 205 [TestCategory("Problems.TestFunctions")] 206 [TestProperty("Time", "short")] 199 207 public void ReferencePointViolationNE() { 200 208 //Front with a single Point … … 216 224 [TestMethod()] 217 225 [ExpectedException(typeof(ArgumentException))] 226 [TestCategory("Problems.TestFunctions")] 227 [TestProperty("Time", "short")] 218 228 public void ReferencePointViolationNW() { 219 229 //Front with a single Point … … 236 246 [TestMethod()] 237 247 [ExpectedException(typeof(ArgumentException))] 248 [TestCategory("Problems.TestFunctions")] 249 [TestProperty("Time", "short")] 238 250 public void ReferencePointViolationSW() { 239 251 //Front with a single Point … … 256 268 [TestMethod()] 257 269 [ExpectedException(typeof(ArgumentException))] 270 [TestCategory("Problems.TestFunctions")] 271 [TestProperty("Time", "short")] 258 272 public void ReferencePointViolationSE() { 259 273 //Front with a single Point
Note: See TracChangeset
for help on using the changeset viewer.