Changeset 9782
- Timestamp:
- 07/26/13 13:57:00 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests
- Files:
-
- 24 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.PluginInfraStructure-3.3/InstallationManagerTest.cs
r9771 r9782 25 25 26 26 namespace HeuristicLab.PluginInfrastructure.Tests { 27 28 29 27 /// <summary> 30 28 ///This is a test class for InstallationManagerTest and is intended … … 33 31 [TestClass()] 34 32 public class InstallationManagerTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 83 33 /// <summary> 84 34 ///A test for GetRemotePluginList 85 35 ///</summary> 86 36 [TestMethod] 37 [TestCategory("General")] 38 [TestProperty("Time", "long")] 87 39 public void GetRemotePluginListTest() { 88 40 string pluginDir = Environment.CurrentDirectory; … … 91 43 var pluginList = target.GetRemotePluginList(); 92 44 Assert.IsTrue(pluginList != null); 93 } 94 catch (Exception e) { 45 } catch (Exception e) { 95 46 Assert.Fail("Connection to the update service failed. " + e.Message); 96 47 } … … 101 52 ///</summary> 102 53 [TestMethod] 54 [TestCategory("General")] 55 [TestProperty("Time", "short")] 103 56 public void GetRemoteProductListTest() { 104 57 string pluginDir = Environment.CurrentDirectory; … … 107 60 var productList = target.GetRemoteProductList(); 108 61 Assert.IsTrue(productList != null); 109 } 110 catch (Exception e) { 62 } catch (Exception e) { 111 63 Assert.Fail("Connection to the update service failed. " + e.Message); 112 64 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.PluginInfraStructure-3.3/TypeExtensionsTest.cs
r9776 r9782 22 22 using System.Collections; 23 23 using System.Collections.Generic; 24 using System.Linq;25 24 using HeuristicLab.Core; 26 25 using HeuristicLab.Data; 27 26 using HeuristicLab.Parameters; 28 27 using HeuristicLab.Problems.DataAnalysis; 29 using HeuristicLab.Tests;30 28 using Microsoft.VisualStudio.TestTools.UnitTesting; 31 29 … … 35 33 /// </summary> 36 34 [TestClass] 37 public class TypeDiscoveryTest { 38 public TypeDiscoveryTest() { } 39 40 private TestContext testContextInstance; 41 42 /// <summary> 43 ///Gets or sets the test context which provides 44 ///information about and functionality for the current test run. 45 ///</summary> 46 public TestContext TestContext { 47 get { return testContextInstance; } 48 set { testContextInstance = value; } 49 } 50 51 public static void MyClassInitialize(TestContext testContext) { 52 PluginLoader.Assemblies.Any(); 53 } 54 35 public class TypeExtensionsTest { 55 36 [TestMethod] 37 [TestCategory("General")] 38 [TestProperty("Time", "short")] 56 39 public void IsSubTypeOfTest() { 57 40 Assert.IsTrue(typeof(int).IsSubTypeOf(typeof(object))); … … 79 62 80 63 [TestMethod] 64 [TestCategory("General")] 65 [TestProperty("Time", "short")] 81 66 public void BuildTypeTest() { 82 67 Assert.AreEqual(typeof(List<>).BuildType(typeof(List<>)), typeof(List<>)); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.Instances-3.3/CordeauGQAPInstanceProviderTest.cs
r9772 r9782 30 30 31 31 [TestMethod] 32 [TestCategory("Problems.Instances")] 33 [TestProperty("Time", "short")] 32 34 public void GetCordeauGQAPInstanceTest() { 33 35 var target = new CordeauGQAPInstanceProvider(); … … 37 39 try { 38 40 target.LoadData(id); 39 } 40 catch (Exception ex) { 41 } catch (Exception ex) { 41 42 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 42 43 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.Instances-3.3/ElloumiCTAPInstanceProviderTest.cs
r9772 r9782 30 30 31 31 [TestMethod] 32 [TestCategory("Problems.Instances")] 33 [TestProperty("Time", "short")] 32 34 public void GetElloumiCTAPInstanceTest() { 33 35 var target = new ElloumiCTAPInstanceProvider(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.Instances-3.3/QAPLIBInstanceProviderTest.cs
r9772 r9782 30 30 31 31 [TestMethod] 32 [TestCategory("Problems.Instances")] 33 [TestProperty("Time", "medium")] 32 34 public void GetQAPLIBInstanceTest() { 33 35 var target = new QAPLIBInstanceProvider(); … … 37 39 try { 38 40 target.LoadData(id); 39 } 40 catch (Exception ex) { 41 } catch (Exception ex) { 41 42 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 42 43 } … … 48 49 49 50 [TestMethod] 51 [TestCategory("Problems.Instances")] 52 [TestProperty("Time", "short")] 50 53 public void GetMicroarrayQAPInstanceTest() { 51 54 var target = new MicroarrayQAPInstanceProvider(); … … 65 68 66 69 [TestMethod] 70 [TestCategory("Problems.Instances")] 71 [TestProperty("Time", "short")] 67 72 public void GetDreznerQAPInstanceTest() { 68 73 var target = new DreznerQAPInstanceProvider(); … … 82 87 83 88 [TestMethod] 89 [TestCategory("Problems.Instances")] 90 [TestProperty("Time", "long")] 84 91 public void GetTaillardQAPInstanceTest() { 85 92 var target = new TaillardQAPInstanceProvider(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.Instances-3.3/TSPLIBInstanceProviderTest.cs
r9772 r9782 20 20 #endregion 21 21 22 23 22 using System; 24 23 using System.Text; 25 24 using HeuristicLab.Problems.Instances.TSPLIB; 26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 27 27 namespace HeuristicLab.Problems.Instances.Tests { 28 28 [TestClass()] … … 30 30 31 31 [TestMethod] 32 [TestCategory("Problems.Instances")] 33 [TestProperty("Time", "medium")] 32 34 public void GetTSPLIBTSPInstanceTest() { 33 35 var target = new TSPLIBTSPInstanceProvider(); … … 37 39 try { 38 40 target.LoadData(id); 39 } 40 catch (Exception ex) { 41 } catch (Exception ex) { 41 42 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 42 43 } … … 48 49 49 50 [TestMethod] 51 [TestCategory("Problems.Instances")] 52 [TestProperty("Time", "short")] 50 53 public void GetTSPLIBATSPInstanceTest() { 51 54 var target = new TSPLIBATSPInstanceProvider(); … … 55 58 try { 56 59 target.LoadData(id); 57 } 58 catch (Exception ex) { 60 } catch (Exception ex) { 59 61 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 60 62 } … … 66 68 67 69 [TestMethod] 70 [TestCategory("Problems.Instances")] 71 [TestProperty("Time", "short")] 68 72 public void GetTSPLIBCVRPInstanceTest() { 69 73 var target = new TSPLIBCVRPInstanceProvider(); … … 73 77 try { 74 78 target.LoadData(id); 75 } 76 catch (Exception ex) { 79 } catch (Exception ex) { 77 80 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 78 81 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.Instances.DataAnalysis-3.3/ClassificationInstanceProviderTest.cs
r9773 r9782 22 22 using System; 23 23 using System.Text; 24 using HeuristicLab.Problems.Instances.DataAnalysis;25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 … … 30 29 31 30 [TestMethod] 31 [TestCategory("Problems.Instances")] 32 [TestProperty("Time", "short")] 32 33 public void UCIInstanceTest() { 33 34 var target = new UCIInstanceProvider(); … … 37 38 try { 38 39 target.LoadData(id); 39 } 40 catch (Exception ex) { 40 } catch (Exception ex) { 41 41 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 42 42 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.Instances.DataAnalysis-3.3/RegressionInstanceProviderTest.cs
r9773 r9782 22 22 using System; 23 23 using System.Text; 24 using HeuristicLab.Problems.Instances.DataAnalysis;25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 … … 30 29 31 30 [TestMethod] 31 [TestCategory("Problems.Instances")] 32 [TestProperty("Time", "medium")] 32 33 public void GetKeijzerInstanceTest() { 33 34 var target = new KeijzerInstanceProvider(); … … 37 38 try { 38 39 target.LoadData(id); 39 } 40 catch (Exception ex) { 40 } catch (Exception ex) { 41 41 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 42 42 } … … 48 48 49 49 [TestMethod] 50 [TestCategory("Problems.Instances")] 51 [TestProperty("Time", "short")] 50 52 public void GetKornInstanceTest() { 51 53 var target = new KornsInstanceProvider(); … … 55 57 try { 56 58 target.LoadData(id); 57 } 58 catch (Exception ex) { 59 } catch (Exception ex) { 59 60 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 60 61 } … … 66 67 67 68 [TestMethod] 69 [TestCategory("Problems.Instances")] 70 [TestProperty("Time", "short")] 68 71 public void GetNguyenInstanceTest() { 69 72 var target = new NguyenInstanceProvider(); … … 73 76 try { 74 77 target.LoadData(id); 75 } 76 catch (Exception ex) { 78 } catch (Exception ex) { 77 79 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 78 80 } … … 84 86 85 87 [TestMethod] 88 [TestCategory("Problems.Instances")] 89 [TestProperty("Time", "short")] 86 90 public void GetRealWorldInstanceTest() { 87 91 var target = new RegressionRealWorldInstanceProvider(); … … 91 95 try { 92 96 target.LoadData(id); 93 } 94 catch (Exception ex) { 97 } catch (Exception ex) { 95 98 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 96 99 } … … 102 105 103 106 [TestMethod] 107 [TestCategory("Problems.Instances")] 108 [TestProperty("Time", "short")] 104 109 public void GetVariousInstanceTest() { 105 110 var target = new VariousInstanceProvider(); … … 109 114 try { 110 115 target.LoadData(id); 111 } 112 catch (Exception ex) { 116 } catch (Exception ex) { 113 117 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 114 118 } … … 120 124 121 125 [TestMethod] 126 [TestCategory("Problems.Instances")] 127 [TestProperty("Time", "short")] 122 128 public void GetVladislavlevaInstanceTest() { 123 129 var target = new VladislavlevaInstanceProvider(); … … 127 133 try { 128 134 target.LoadData(id); 129 } 130 catch (Exception ex) { 135 } catch (Exception ex) { 131 136 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 132 137 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.Instances.DataAnalysis-3.3/TableFileParserTest.cs
r9764 r9782 22 22 using System; 23 23 using System.IO; 24 using HeuristicLab.Problems.Instances.DataAnalysis;25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 27 26 namespace HeuristicLab.Problems.Instances.DataAnalysis.Tests { 28 29 27 [TestClass()] 30 28 public class TableFileParserTest { 31 32 [TestMethod] 29 [TestMethod] 30 [TestCategory("Problems.Instances")] 31 [TestProperty("Time", "short")] 33 32 public void ParseCSV() { 34 33 string tempFileName = Path.GetTempFileName(); … … 46 45 Assert.AreEqual(4, parser.Columns); 47 46 Assert.AreEqual(parser.Values[3][0], 3.14); 48 } 49 finally { 50 File.Delete(tempFileName); 51 } 52 } 53 [TestMethod] 47 } finally { 48 File.Delete(tempFileName); 49 } 50 } 51 52 [TestMethod] 53 [TestCategory("Problems.Instances")] 54 [TestProperty("Time", "short")] 54 55 public void ParseCSVWithNames() { 55 56 string tempFileName = Path.GetTempFileName(); … … 68 69 Assert.AreEqual(4, parser.Columns); 69 70 Assert.AreEqual(parser.Values[3][0], 3.14); 70 } 71 finally { 72 File.Delete(tempFileName); 73 } 74 } 75 76 [TestMethod] 71 } finally { 72 File.Delete(tempFileName); 73 } 74 } 75 76 [TestMethod] 77 [TestCategory("Problems.Instances")] 78 [TestProperty("Time", "short")] 77 79 public void ParseGermanCSV() { 78 80 string tempFileName = Path.GetTempFileName(); … … 90 92 Assert.AreEqual(4, parser.Columns); 91 93 Assert.AreEqual(parser.Values[3][0], 3.14); 92 } 93 finally { 94 File.Delete(tempFileName); 95 } 96 } 97 98 [TestMethod] 94 } finally { 95 File.Delete(tempFileName); 96 } 97 } 98 99 [TestMethod] 100 [TestCategory("Problems.Instances")] 101 [TestProperty("Time", "short")] 99 102 public void ParseGermanCSVWithNames() { 100 103 string tempFileName = Path.GetTempFileName(); … … 113 116 Assert.AreEqual(4, parser.Columns); 114 117 Assert.AreEqual(parser.Values[3][0], 3.14); 115 } 116 finally { 117 File.Delete(tempFileName); 118 } 119 } 120 121 [TestMethod] 118 } finally { 119 File.Delete(tempFileName); 120 } 121 } 122 123 [TestMethod] 124 [TestCategory("Problems.Instances")] 125 [TestProperty("Time", "short")] 122 126 public void ParseGermanCSVWithoutCommas() { 123 127 string tempFileName = Path.GetTempFileName(); … … 135 139 Assert.AreEqual(4, parser.Columns); 136 140 Assert.AreEqual((double)parser.Values[3][0], 3); 137 } 138 finally { 139 File.Delete(tempFileName); 140 } 141 } 142 [TestMethod] 141 } finally { 142 File.Delete(tempFileName); 143 } 144 } 145 146 [TestMethod] 147 [TestCategory("Problems.Instances")] 148 [TestProperty("Time", "short")] 143 149 public void ParseGermanCSVWithoutCommasWithNames() { 144 150 string tempFileName = Path.GetTempFileName(); … … 157 163 Assert.AreEqual(4, parser.Columns); 158 164 Assert.AreEqual((double)parser.Values[3][0], 3); 159 } 160 finally { 161 File.Delete(tempFileName); 162 } 163 } 164 165 [TestMethod] 165 } finally { 166 File.Delete(tempFileName); 167 } 168 } 169 170 [TestMethod] 171 [TestCategory("Problems.Instances")] 172 [TestProperty("Time", "short")] 166 173 public void ParseEnglishCSVWithoutCommas() { 167 174 string tempFileName = Path.GetTempFileName(); … … 179 186 Assert.AreEqual(4, parser.Columns); 180 187 Assert.AreEqual((double)parser.Values[3][0], 3); 181 } 182 finally { 183 File.Delete(tempFileName); 184 } 185 } 186 187 [TestMethod] 188 } finally { 189 File.Delete(tempFileName); 190 } 191 } 192 193 [TestMethod] 194 [TestCategory("Problems.Instances")] 195 [TestProperty("Time", "short")] 188 196 public void ParseEnglishCSVWithoutCommasWithoutSpace() { 189 197 string tempFileName = Path.GetTempFileName(); … … 201 209 Assert.AreEqual(4, parser.Columns); 202 210 Assert.AreEqual((double)parser.Values[3][0], 3); 203 } 204 finally { 205 File.Delete(tempFileName); 206 } 207 } 208 209 [TestMethod] 211 } finally { 212 File.Delete(tempFileName); 213 } 214 } 215 216 [TestMethod] 217 [TestCategory("Problems.Instances")] 218 [TestProperty("Time", "short")] 210 219 public void ParseEnglishCSVWithoutCommasWithNames() { 211 220 string tempFileName = Path.GetTempFileName(); … … 224 233 Assert.AreEqual(4, parser.Columns); 225 234 Assert.AreEqual((double)parser.Values[3][0], 3); 226 } 227 finally { 228 File.Delete(tempFileName); 229 } 230 } 231 232 [TestMethod] 235 } finally { 236 File.Delete(tempFileName); 237 } 238 } 239 240 [TestMethod] 241 [TestCategory("Problems.Instances")] 242 [TestProperty("Time", "short")] 233 243 public void ParseEnglishCSVWithoutCommasWithoutSpacesWithNames() { 234 244 string tempFileName = Path.GetTempFileName(); … … 247 257 Assert.AreEqual(4, parser.Columns); 248 258 Assert.AreEqual((double)parser.Values[3][0], 3); 249 } 250 finally { 251 File.Delete(tempFileName); 252 } 253 } 254 255 256 [TestMethod] 259 } finally { 260 File.Delete(tempFileName); 261 } 262 } 263 264 265 [TestMethod] 266 [TestCategory("Problems.Instances")] 267 [TestProperty("Time", "short")] 257 268 public void ParseGermanTabSeparated() { 258 269 string tempFileName = Path.GetTempFileName(); … … 270 281 Assert.AreEqual(4, parser.Columns); 271 282 Assert.AreEqual((double)parser.Values[3][0], 3.14); 272 } 273 finally { 274 File.Delete(tempFileName); 275 } 276 } 277 278 [TestMethod] 283 } finally { 284 File.Delete(tempFileName); 285 } 286 } 287 288 [TestMethod] 289 [TestCategory("Problems.Instances")] 290 [TestProperty("Time", "short")] 279 291 public void ParseGermanTabSeparatedWithNames() { 280 292 string tempFileName = Path.GetTempFileName(); … … 293 305 Assert.AreEqual(4, parser.Columns); 294 306 Assert.AreEqual((double)parser.Values[3][0], 3.14); 295 } 296 finally { 297 File.Delete(tempFileName); 298 } 299 } 300 301 [TestMethod] 307 } finally { 308 File.Delete(tempFileName); 309 } 310 } 311 312 [TestMethod] 313 [TestCategory("Problems.Instances")] 314 [TestProperty("Time", "short")] 302 315 public void ParseEnglishTabSeparated() { 303 316 string tempFileName = Path.GetTempFileName(); … … 315 328 Assert.AreEqual(4, parser.Columns); 316 329 Assert.AreEqual((double)parser.Values[3][0], 3.14); 317 } 318 finally { 319 File.Delete(tempFileName); 320 } 321 } 322 [TestMethod] 330 } finally { 331 File.Delete(tempFileName); 332 } 333 } 334 335 [TestMethod] 336 [TestCategory("Problems.Instances")] 337 [TestProperty("Time", "short")] 323 338 public void ParseEnglishTabSeparatedWithNames() { 324 339 string tempFileName = Path.GetTempFileName(); … … 337 352 Assert.AreEqual(4, parser.Columns); 338 353 Assert.AreEqual((double)parser.Values[3][0], 3.14); 339 } 340 finally { 341 File.Delete(tempFileName); 342 } 343 } 344 345 [TestMethod] 354 } finally { 355 File.Delete(tempFileName); 356 } 357 } 358 359 [TestMethod] 360 [TestCategory("Problems.Instances")] 361 [TestProperty("Time", "short")] 346 362 public void ParseTabSeparatedWithoutCommas() { 347 363 string tempFileName = Path.GetTempFileName(); … … 359 375 Assert.AreEqual(4, parser.Columns); 360 376 Assert.AreEqual((double)parser.Values[3][0], 3); 361 } 362 finally { 363 File.Delete(tempFileName); 364 } 365 } 366 [TestMethod] 377 } finally { 378 File.Delete(tempFileName); 379 } 380 } 381 382 [TestMethod] 383 [TestCategory("Problems.Instances")] 384 [TestProperty("Time", "short")] 367 385 public void ParseTabSeparatedWithoutCommasWithNames() { 368 386 string tempFileName = Path.GetTempFileName(); … … 381 399 Assert.AreEqual(4, parser.Columns); 382 400 Assert.AreEqual((double)parser.Values[3][0], 3); 383 } 384 finally { 385 File.Delete(tempFileName); 386 } 387 } 388 389 [TestMethod] 401 } finally { 402 File.Delete(tempFileName); 403 } 404 } 405 406 [TestMethod] 407 [TestCategory("Problems.Instances")] 408 [TestProperty("Time", "short")] 390 409 public void ParseWithEmtpyLines() { 391 410 string tempFileName = Path.GetTempFileName(); … … 403 422 Assert.AreEqual(4, parser.Rows); 404 423 Assert.AreEqual(4, parser.Columns); 405 } 406 finally { 407 File.Delete(tempFileName); 408 } 409 } 410 411 [TestMethod] 424 } finally { 425 File.Delete(tempFileName); 426 } 427 } 428 429 [TestMethod] 430 [TestCategory("Problems.Instances")] 431 [TestProperty("Time", "short")] 412 432 public void ParseGermanSpaceSeparated() { 413 433 string tempFileName = Path.GetTempFileName(); … … 425 445 Assert.AreEqual(4, parser.Columns); 426 446 Assert.AreEqual((double)parser.Values[3][0], 3.14); 427 } 428 finally { 429 File.Delete(tempFileName); 430 } 431 } 432 [TestMethod] 447 } finally { 448 File.Delete(tempFileName); 449 } 450 } 451 452 [TestMethod] 453 [TestCategory("Problems.Instances")] 454 [TestProperty("Time", "short")] 433 455 public void ParseGermanSpaceSeparatedWithNames() { 434 456 string tempFileName = Path.GetTempFileName(); … … 447 469 Assert.AreEqual(4, parser.Columns); 448 470 Assert.AreEqual((double)parser.Values[3][0], 3.14); 449 } 450 finally { 451 File.Delete(tempFileName); 452 } 453 } 454 455 [TestMethod] 471 } finally { 472 File.Delete(tempFileName); 473 } 474 } 475 476 [TestMethod] 477 [TestCategory("Problems.Instances")] 478 [TestProperty("Time", "short")] 456 479 public void ParseEnglishSpaceSeparated() { 457 480 string tempFileName = Path.GetTempFileName(); … … 469 492 Assert.AreEqual(4, parser.Columns); 470 493 Assert.AreEqual((double)parser.Values[3][0], 3.14); 471 } 472 finally { 473 File.Delete(tempFileName); 474 } 475 } 476 [TestMethod] 494 } finally { 495 File.Delete(tempFileName); 496 } 497 } 498 499 [TestMethod] 500 [TestCategory("Problems.Instances")] 501 [TestProperty("Time", "short")] 477 502 public void ParseEnglishSpaceSeparatedWithNames() { 478 503 string tempFileName = Path.GetTempFileName(); … … 491 516 Assert.AreEqual(4, parser.Columns); 492 517 Assert.AreEqual((double)parser.Values[3][0], 3.14); 493 } 494 finally { 495 File.Delete(tempFileName); 496 } 497 } 498 499 [TestMethod] 518 } finally { 519 File.Delete(tempFileName); 520 } 521 } 522 523 [TestMethod] 524 [TestCategory("Problems.Instances")] 525 [TestProperty("Time", "short")] 500 526 public void ParseEnglishSpaceSeparatedWithNamesManyColumns() { 501 527 string tempFileName = Path.GetTempFileName(); … … 511 537 Assert.AreEqual(3, parser.Rows); 512 538 Assert.AreEqual(4507, parser.Columns); 513 } 514 finally { 515 File.Delete(tempFileName); 516 } 517 } 518 519 [TestMethod] 539 } finally { 540 File.Delete(tempFileName); 541 } 542 } 543 544 [TestMethod] 545 [TestCategory("Problems.Instances")] 546 [TestProperty("Time", "short")] 520 547 public void ParseSpaceSeparatedWithoutCommas() { 521 548 string tempFileName = Path.GetTempFileName(); … … 533 560 Assert.AreEqual(4, parser.Columns); 534 561 Assert.AreEqual((double)parser.Values[3][0], 3); 535 } 536 finally { 537 File.Delete(tempFileName); 538 } 539 } 540 [TestMethod] 562 } finally { 563 File.Delete(tempFileName); 564 } 565 } 566 567 [TestMethod] 568 [TestCategory("Problems.Instances")] 569 [TestProperty("Time", "short")] 541 570 public void ParseSpaceSeparatedWithoutCommasWithNames() { 542 571 string tempFileName = Path.GetTempFileName(); … … 555 584 Assert.AreEqual(4, parser.Columns); 556 585 Assert.AreEqual((double)parser.Values[3][0], 3); 557 } 558 finally { 586 } finally { 559 587 File.Delete(tempFileName); 560 588 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.LinearAssignment-3.3/LinearAssignmentProblemSolverTest.cs
r9774 r9782 24 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 25 26 namespace HeuristicLab.Problems.LinearAssignment.Tests _33{26 namespace HeuristicLab.Problems.LinearAssignment.Tests { 27 27 /// <summary> 28 28 ///This is a test class for LinearAssignmentProblemSolverTest and is intended … … 31 31 [TestClass()] 32 32 public class LinearAssignmentProblemSolverTest { 33 34 private TestContext testContextInstance;35 36 /// <summary>37 ///Gets or sets the test context which provides38 ///information about and functionality for the current test run.39 ///</summary>40 public TestContext TestContext {41 get { return testContextInstance; }42 set { testContextInstance = value; }43 }44 45 46 33 /// <summary> 47 34 ///A test for Solve 48 35 ///</summary> 49 36 [TestMethod] 37 [TestCategory("Problems.Assignment")] 38 [TestProperty("Time", "short")] 50 39 public void SolveTest() { 51 40 double[,] costs = new double[,] { -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.QuadraticAssignment-3.3/QAPLIBInstancesTest.cs
r9456 r9782 27 27 using Microsoft.VisualStudio.TestTools.UnitTesting; 28 28 29 namespace HeuristicLab.Problems.QuadraticAssignment.Tests _33{29 namespace HeuristicLab.Problems.QuadraticAssignment.Tests { 30 30 [TestClass] 31 31 public class QAPLIBInstancesTest { … … 189 189 190 190 [TestMethod] 191 [TestCategory("Problems.Assignment")] 192 [TestProperty("Time", "long")] 191 193 public void TestQAPLIBInstances() { 192 194 var provider = new QAPLIBInstanceProvider(); … … 208 210 209 211 [TestMethod] 212 [TestCategory("Problems.Assignment")] 213 [TestProperty("Time", "long")] 210 214 public void TestQAPLIBSolutions() { 211 215 var provider = new QAPLIBInstanceProvider(); … … 226 230 227 231 [TestMethod] 232 [TestCategory("Problems.Assignment")] 233 [TestProperty("Time", "short")] 228 234 public void TestQAPLIBLowerBounds() { 229 235 var provider = new QAPLIBInstanceProvider(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.QuadraticAssignment-3.3/QAPMoveEvaluatorTest.cs
r9456 r9782 27 27 using Microsoft.VisualStudio.TestTools.UnitTesting; 28 28 29 namespace HeuristicLab.Problems.QuadraticAssignment.Tests_33 { 30 29 namespace HeuristicLab.Problems.QuadraticAssignment.Tests { 31 30 /// <summary> 32 31 ///This is a test class for the QAP move evaluators … … 86 85 87 86 [TestMethod] 87 [TestCategory("Problems.Assignment")] 88 [TestProperty("Time", "short")] 88 89 public void Swap2MoveEvaluatorFastEvaluationTest() { 89 90 … … 126 127 127 128 [TestMethod] 129 [TestCategory("Problems.Assignment")] 130 [TestProperty("Time", "short")] 128 131 public void Swap2MoveEvaluatorTest() { 129 132 for (int i = 0; i < 500; i++) { … … 157 160 158 161 [TestMethod] 162 [TestCategory("Problems.Assignment")] 163 [TestProperty("Time", "short")] 159 164 public void InversionMoveEvaluatorTest() { 160 165 for (int i = 0; i < 500; i++) { … … 189 194 190 195 [TestMethod] 196 [TestCategory("Problems.Assignment")] 197 [TestProperty("Time", "short")] 191 198 public void TranslocationMoveEvaluatorTest() { 192 199 for (int i = 0; i < 500; i++) { … … 227 234 228 235 [TestMethod] 236 [TestCategory("Problems.Assignment")] 237 [TestProperty("Time", "short")] 229 238 public void ScrambleMoveEvaluatorTest() { 230 239 for (int i = 0; i < 500; i++) { -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/AckleyEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for AckleyEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class AckleyEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void AckleyEvaluateFunctionTest() { 88 39 AckleyEvaluator_Accessor target = new AckleyEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/BealeEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for BealeEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class BealeEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void BealeEvaluateFunctionTest() { 88 39 BealeEvaluator_Accessor target = new BealeEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/BoothEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for BoothEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class BoothEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void BoothEvaluateFunctionTest() { 88 39 BoothEvaluator_Accessor target = new BoothEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/GriewankEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for GriewankEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class GriewankEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void GriewankEvaluateFunctionTest() { 88 39 GriewankEvaluator_Accessor target = new GriewankEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/LevyEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for LevyEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class LevyEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void LevyEvaluateFunctionTest() { 88 39 LevyEvaluator_Accessor target = new LevyEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/MatyasEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for MatyasEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class MatyasEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void MatyasEvaluateFunctionTest() { 88 39 MatyasEvaluator_Accessor target = new MatyasEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/RastriginEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for RastriginEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class RastriginEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void RastriginEvaluateFunctionTest() { 88 39 RastriginEvaluator_Accessor target = new RastriginEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/RosenbrockEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for RosenbrockEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class RosenbrockEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void RosenbrockEvaluateFunctionTest() { 88 39 RosenbrockEvaluator_Accessor target = new RosenbrockEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/SphereEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for SphereEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class SphereEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void SphereEvaluateFunctionTest() { 88 39 SphereEvaluator_Accessor target = new SphereEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/SumSquaresEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for SumSquaresEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class SumSquaresEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void SumSquaresEvaluateFunctionTest() { 88 39 SumSquaresEvaluator_Accessor target = new SumSquaresEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TestFunctions-3.3/ZakharovEvaluatorTest.cs
r9775 r9782 21 21 22 22 using HeuristicLab.Encodings.RealVectorEncoding; 23 using HeuristicLab.Problems.TestFunctions;24 23 using Microsoft.VisualStudio.TestTools.UnitTesting; 25 24 26 25 namespace HeuristicLab.Problems.TestFunctions.Tests { 27 28 29 26 /// <summary> 30 27 ///This is a test class for ZakharovEvaluatorTest and is intended … … 33 30 [TestClass()] 34 31 public class ZakharovEvaluatorTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///information about and functionality for the current test run.42 ///</summary>43 public TestContext TestContext {44 get {45 return testContextInstance;46 }47 set {48 testContextInstance = value;49 }50 }51 52 #region Additional test attributes53 //54 //You can use the following additional attributes as you write your tests:55 //56 //Use ClassInitialize to run code before running the first test in the class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 32 /// <summary> 83 33 ///A test for EvaluateFunction 84 34 ///</summary> 85 35 [TestMethod] 86 [DeploymentItem("HeuristicLab.Problems.TestFunctions-3.3.dll")] 36 [TestCategory("Problems.TestFunctions")] 37 [TestProperty("Time", "short")] 87 38 public void ZakharovEvaluateFunctionTest() { 88 39 ZakharovEvaluator_Accessor target = new ZakharovEvaluator_Accessor(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.TravelingSalesman-3.3/TSPMoveEvaluatorTest.cs
r9764 r9782 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Encodings.PermutationEncoding; 26 using HeuristicLab.Problems.TravelingSalesman;27 26 using HeuristicLab.Random; 28 27 using Microsoft.VisualStudio.TestTools.UnitTesting; 29 28 30 29 namespace HeuristicLab.Problems.TravelingSalesman.Tests { 31 32 30 /// <summary> 33 31 ///This is a test class for TSP move evaluators … … 40 38 private static Permutation tour; 41 39 private static MersenneTwister random; 42 43 private TestContext testContextInstance;44 /// <summary>45 ///Gets or sets the test context which provides46 ///information about and functionality for the current test run.47 ///</summary>48 public TestContext TestContext {49 get { return testContextInstance; }50 set { testContextInstance = value; }51 }52 40 53 41 [ClassInitialize] … … 70 58 71 59 [TestMethod] 60 [TestCategory("Problems.TravelingSalesman")] 61 [TestProperty("Time", "short")] 72 62 public void InversionMoveEvaluatorTest() { 73 63 var evaluator = new TSPRoundedEuclideanPathEvaluator(); … … 101 91 102 92 [TestMethod] 93 [TestCategory("Problems.TravelingSalesman")] 94 [TestProperty("Time", "short")] 103 95 public void TranslocationMoveEvaluatorTest() { 104 96 var evaluator = new TSPRoundedEuclideanPathEvaluator(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Tests.csproj
r9718 r9782 393 393 <Compile Include="HeuristicLab.Persistence-3.3\UseCases.cs" /> 394 394 <Compile Include="HeuristicLab.PluginInfraStructure-3.3\InstallationManagerTest.cs" /> 395 <Compile Include="HeuristicLab.PluginInfraStructure-3.3\Type DiscoveryTest.cs" />395 <Compile Include="HeuristicLab.PluginInfraStructure-3.3\TypeExtensionsTest.cs" /> 396 396 <Compile Include="HeuristicLab.Problems.DataAnalysis-3.4\ThresholdCalculatorsTest.cs" /> 397 397 <Compile Include="HeuristicLab.Problems.DataAnalysis-3.4\OnlineCalculatorPerformanceTest.cs" />
Note: See TracChangeset
for help on using the changeset viewer.