- Timestamp:
- 07/26/13 14:06:27 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests
- Files:
-
- 19 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/CloningConstructorTest.cs
r9764 r9783 38 38 39 39 [TestMethod] 40 [TestCategory("General")] 41 [TestCategory("Essential")] 42 [TestProperty("Time", "medium")] 40 43 public void TestCloningConstructor() { 41 44 StringBuilder errorMessage = new StringBuilder(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/CollectObjectGraphTest.cs
r9764 r9783 44 44 45 45 [TestMethod] 46 [TestCategory("General")] 47 [TestCategory("Essential")] 48 [TestProperty("Time", "medium")] 46 49 [DeploymentItem(@"HeuristicLab-3.3/Resources/GA_SymbReg.hl")] 47 50 public void CollectGASample() { … … 94 97 /// </summary> 95 98 [TestMethod] 99 [TestCategory("General")] 100 [TestProperty("Time", "long")] 96 101 public void AlgorithmExecutions() { 97 102 var algs = new List<IAlgorithm>(); … … 120 125 /// </summary> 121 126 [TestMethod] 127 [TestCategory("General")] 128 [TestProperty("Time", "medium")] 122 129 public void ParallelAlgorithmExecutions() { 123 130 int n = 60; -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/ContentViewTests.cs
r9764 r9783 34 34 } 35 35 36 private TestContext testContextInstance;37 38 /// <summary>39 ///Gets or sets the test context which provides40 ///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 36 // Use ClassInitialize to run code before running the first test in the class 52 37 [ClassInitialize] … … 57 42 58 43 [TestMethod] 44 [TestCategory("General")] 45 [TestCategory("Essential")] 46 [TestProperty("Time", "long")] 59 47 public void ContentViewAttributeTest() { 60 48 //get all non-generic and instantiable classes which implement IContentView … … 70 58 try { 71 59 accessor.OnContentChanged(); 72 } catch (Exception ex) { 60 } 61 catch (Exception ex) { 73 62 Assert.Fail(viewType.ToString() + Environment.NewLine + ex.Message); 74 63 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
r9764 r9783 42 42 } 43 43 44 private TestContext testContextInstance; 45 public TestContext TestContext { 46 get { return testContextInstance; } 47 set { testContextInstance = value; } 48 } 49 44 50 public DeepCloneableCloningTest() { 45 51 excludedTypes = new HashSet<Type>(); … … 55 61 } 56 62 57 private TestContext testContextInstance;58 63 private readonly HashSet<Type> excludedTypes; 59 64 60 /// <summary>61 ///Gets or sets the test context which provides62 ///information about and functionality for the current test run.63 ///</summary>64 public TestContext TestContext {65 get {66 return testContextInstance;67 }68 set {69 testContextInstance = value;70 }71 }72 73 #region Additional test attributes74 //75 // You can use the following additional attributes as you write your tests:76 //77 // Use ClassInitialize to run code before running the first test in the class78 // [ClassInitialize()]79 // public static void MyClassInitialize(TestContext testContext) { }80 //81 // Use ClassCleanup to run code after all tests in a class have run82 // [ClassCleanup()]83 // public static void MyClassCleanup() { }84 //85 // Use TestInitialize to run code before running each test86 // [TestInitialize()]87 // public void MyTestInitialize() { }88 //89 // Use TestCleanup to run code after each test has run90 // [TestCleanup()]91 // public void MyTestCleanup() { }92 //93 #endregion94 95 65 [TestMethod] 66 [TestCategory("General")] 67 [TestCategory("Essential")] 68 [TestProperty("Time", "long")] 96 69 [DeploymentItem(@"HeuristicLab-3.3\Resources\SamplesExperimentFinished.hl")] 97 70 public void TestCloningFinishedExperiment() { … … 105 78 106 79 [TestMethod] 80 [TestCategory("General")] 81 [TestCategory("Essential")] 82 [TestProperty("Time", "long")] 107 83 public void TestCloningAllDeepCloneables() { 108 84 PluginLoader.Assemblies.ToArray(); … … 119 95 try { 120 96 item = (IDeepCloneable)Activator.CreateInstance(deepCloneableType, nonPublic: false); 121 } catch { continue; } // no default constructor 97 } 98 catch { continue; } // no default constructor 122 99 123 100 IDeepCloneable clone = null; 124 101 try { 125 102 clone = (IDeepCloneable)item.Clone(new Cloner()); 126 } catch (Exception e) { 103 } 104 catch (Exception e) { 127 105 TestContext.WriteLine(Environment.NewLine + deepCloneableType.FullName + ":"); 128 106 TestContext.WriteLine("ERROR! " + e.GetType().Name + @" was thrown during cloning. -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/GeneticAlgorithmTest.cs
r9764 r9783 34 34 35 35 private TestContext testContextInstance; 36 37 /// <summary>38 ///Gets or sets the test context which provides39 ///information about and functionality for the current test run.40 ///</summary>41 36 public TestContext TestContext { 42 get { 43 return testContextInstance; 44 } 45 set { 46 testContextInstance = value; 47 } 37 get { return testContextInstance; } 38 set { testContextInstance = value; } 48 39 } 49 50 #region Additional test attributes51 //52 // You can use the following additional attributes as you write your tests:53 //54 // Use ClassInitialize to run code before running the first test in the class55 // [ClassInitialize()]56 // public static void MyClassInitialize(TestContext testContext) { }57 //58 // Use ClassCleanup to run code after all tests in a class have run59 // [ClassCleanup()]60 // public static void MyClassCleanup() { }61 //62 // Use TestInitialize to run code before running each test63 // [TestInitialize()]64 // public void MyTestInitialize() { }65 //66 // Use TestCleanup to run code after each test has run67 // [TestCleanup()]68 // public void MyTestCleanup() { }69 //70 #endregion71 40 72 41 private EventWaitHandle trigger = new AutoResetEvent(false); … … 74 43 75 44 [TestMethod] 45 [TestCategory("General")] 46 [TestProperty("Time", "long")] 76 47 [DeploymentItem(@"HeuristicLab-3.3/Resources/GA_TSP.hl")] 77 48 public void GeneticAlgorithmPerformanceTest() { -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/InstantiateCreatablesTest.cs
r9764 r9783 37 37 } 38 38 [TestMethod] 39 [TestCategory("General")] 40 [TestCategory("Essential")] 41 [TestProperty("Time", "medium")] 39 42 public void InstantiateAllCreatables() { 40 43 var exceptions = new List<string>(); … … 49 52 try { 50 53 var instance = Activator.CreateInstance(t); 51 } catch { 54 } 55 catch { 52 56 exceptions.Add("Error instantiating " + t.FullName); 53 57 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/ParameterVisibilityTest.cs
r9764 r9783 36 36 PluginLoader.Assemblies.Any(); 37 37 } 38 /// <summary> 39 ///Gets or sets the test context which provides 40 ///information about and functionality for the current test run. 41 ///</summary> 38 42 39 private TestContext testContextInstance; 43 40 public TestContext TestContext { 44 get { 45 return testContextInstance; 46 } 47 set { 48 testContextInstance = value; 49 } 41 get { return testContextInstance; } 42 set { testContextInstance = value; } 50 43 } 51 44 52 45 [TestMethod] 46 [TestCategory("General")] 47 [TestCategory("Essential")] 48 [TestProperty("Time", "long")] 53 49 public void TestParameterVisibility() { 54 50 StringBuilder errorMessage = new StringBuilder(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/PluginDependenciesTest.cs
r9764 r9783 53 53 54 54 [TestMethod] 55 [TestCategory("General")] 56 [TestCategory("Essential")] 57 [TestProperty("Time", "short")] 55 58 public void CheckReferenceAssembliesForPluginDependencies() { 56 59 StringBuilder errorMessage = new StringBuilder(); … … 76 79 77 80 [TestMethod] 81 [TestCategory("General")] 82 [TestCategory("Essential")] 83 [TestProperty("Time", "short")] 78 84 public void CheckPluginDependenciesForReferencedAssemblies() { 79 85 StringBuilder errorMessage = new StringBuilder(); … … 103 109 104 110 private static Type GetPluginFromAssembly(Assembly assembly) { 105 return assembly.GetExportedTypes(). Where(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface).FirstOrDefault();111 return assembly.GetExportedTypes().FirstOrDefault(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface); 106 112 } 107 113 -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs
r9764 r9783 71 71 #region TSP 72 72 [TestMethod] 73 [TestCategory("Samples.Create")] 74 [TestProperty("Time", "medium")] 73 75 public void CreateGaTspSampleTest() { 74 76 var ga = CreateGaTspSample(); … … 76 78 } 77 79 [TestMethod] 80 [TestCategory("Samples.Execute")] 81 [TestProperty("Time", "long")] 78 82 public void RunGaTspSampleTest() { 79 83 var ga = CreateGaTspSample(); … … 107 111 #region VRP 108 112 [TestMethod] 113 [TestCategory("Samples.Create")] 114 [TestProperty("Time", "medium")] 109 115 public void CreateGaVrpSampleTest() { 110 116 var ga = CreateGaVrpSample(); … … 113 119 114 120 [TestMethod] 121 [TestCategory("Samples.Execute")] 122 [TestProperty("Time", "long")] 115 123 public void RunGaVrpSampleTest() { 116 124 var ga = CreateGaVrpSample(); … … 177 185 #region ArtificialAnt 178 186 [TestMethod] 187 [TestCategory("Samples.Create")] 188 [TestProperty("Time", "medium")] 179 189 public void CreateGpArtificialAntSampleTest() { 180 190 var ga = CreateGpArtificialAntSample(); … … 183 193 184 194 [TestMethod] 195 [TestCategory("Samples.Execute")] 196 [TestProperty("Time", "long")] 185 197 public void RunGpArtificialAntSampleTest() { 186 198 var ga = CreateGpArtificialAntSample(); … … 229 241 #region Symbolic Regression 230 242 [TestMethod] 243 [TestCategory("Samples.Create")] 244 [TestProperty("Time", "medium")] 231 245 public void CreateGpSymbolicRegressionSampleTest() { 232 246 var ga = CreateGpSymbolicRegressionSample(); … … 234 248 } 235 249 [TestMethod] 250 [TestCategory("Samples.Execute")] 251 [TestProperty("Time", "long")] 236 252 public void RunGpSymbolicRegressionSampleTest() { 237 253 var ga = CreateGpSymbolicRegressionSample(); … … 333 349 #region Symbolic Classification 334 350 [TestMethod] 351 [TestCategory("Samples.Create")] 352 [TestProperty("Time", "medium")] 335 353 public void CreateGpSymbolicClassificationSampleTest() { 336 354 var ga = CreateGpSymbolicClassificationSample(); … … 339 357 340 358 [TestMethod] 359 [TestCategory("Samples.Execute")] 360 [TestProperty("Time", "long")] 341 361 public void RunGpSymbolicClassificationSampleTest() { 342 362 var ga = CreateGpSymbolicClassificationSample(); … … 440 460 #region LawnMower 441 461 [TestMethod] 462 [TestCategory("Samples.Execute")] 463 [TestProperty("Time", "long")] 442 464 public void RunGpLawnMowerSampleTest() { 443 465 var ga = CreateGpLawnMowerSample(); … … 470 492 #region Griewank 471 493 [TestMethod] 494 [TestCategory("Samples.Create")] 495 [TestProperty("Time", "medium")] 472 496 public void CreateEsGriewankSampleTest() { 473 497 var es = CreateEsGriewankSample(); … … 475 499 } 476 500 [TestMethod] 501 [TestCategory("Samples.Execute")] 502 [TestProperty("Time", "long")] 477 503 public void RunEsGriewankSampleTest() { 478 504 var es = CreateEsGriewankSample(); … … 524 550 #region TSP 525 551 [TestMethod] 552 [TestCategory("Samples.Create")] 553 [TestProperty("Time", "medium")] 526 554 public void CreateIslandGaTspSampleTest() { 527 555 var ga = CreateIslandGaTspSample(); … … 529 557 } 530 558 [TestMethod] 559 [TestCategory("Samples.Execute")] 560 [TestProperty("Time", "long")] 531 561 public void RunIslandGaTspSampleTest() { 532 562 var ga = CreateIslandGaTspSample(); … … 564 594 #region Knapsack 565 595 [TestMethod] 596 [TestCategory("Samples.Create")] 597 [TestProperty("Time", "medium")] 566 598 public void CreateLocalSearchKnapsackSampleTest() { 567 599 var ls = CreateLocalSearchKnapsackSample(); … … 569 601 } 570 602 [TestMethod] 603 [TestCategory("Samples.Execute")] 604 [TestProperty("Time", "medium")] 571 605 public void RunLocalSearchKnapsackSampleTest() { 572 606 var ls = CreateLocalSearchKnapsackSample(); … … 625 659 #region Schwefel 626 660 [TestMethod] 661 [TestCategory("Samples.Create")] 662 [TestProperty("Time", "medium")] 627 663 public void CreatePsoSchwefelSampleTest() { 628 664 var pso = CreatePsoSchwefelSample(); … … 630 666 } 631 667 [TestMethod] 668 [TestCategory("Samples.Execute")] 669 [TestProperty("Time", "medium")] 632 670 public void RunPsoSchwefelSampleTest() { 633 671 var pso = CreatePsoSchwefelSample(); … … 704 742 #region Rastrigin 705 743 [TestMethod] 744 [TestCategory("Samples.Create")] 745 [TestProperty("Time", "medium")] 706 746 public void CreateSimulatedAnnealingRastriginSampleTest() { 707 747 var sa = CreateSimulatedAnnealingRastriginSample(); … … 709 749 } 710 750 [TestMethod] 751 [TestCategory("Samples.Execute")] 752 [TestProperty("Time", "medium")] 711 753 public void RunSimulatedAnnealingRastriginSampleTest() { 712 754 var sa = CreateSimulatedAnnealingRastriginSample(); … … 770 812 #region TSP 771 813 [TestMethod] 814 [TestCategory("Samples.Create")] 815 [TestProperty("Time", "medium")] 772 816 public void CreateTabuSearchTspSampleTest() { 773 817 var ts = CreateTabuSearchTspSample(); … … 775 819 } 776 820 [TestMethod] 821 [TestCategory("Samples.Execute")] 822 [TestProperty("Time", "long")] 777 823 public void RunTabuSearchTspSampleTest() { 778 824 var ts = CreateTabuSearchTspSample(); … … 837 883 #region VRP 838 884 [TestMethod] 885 [TestCategory("Samples.Create")] 886 [TestProperty("Time", "medium")] 839 887 public void CreateTabuSearchVRPSampleTest() { 840 888 var vrp = CreateTabuSearchVrpSample(); … … 842 890 } 843 891 [TestMethod] 892 [TestCategory("Samples.Execute")] 893 [TestProperty("Time", "long")] 844 894 public void RunTabuSearchVRPSampleTest() { 845 895 var vrp = CreateTabuSearchVrpSample(); … … 905 955 #region TSP 906 956 [TestMethod] 957 [TestCategory("Samples.Create")] 958 [TestProperty("Time", "medium")] 907 959 public void CreateVnsTspSampleTest() { 908 960 var vns = CreateVnsTspSample(); … … 910 962 } 911 963 [TestMethod] 964 [TestCategory("Samples.Execute")] 965 [TestProperty("Time", "long")] 912 966 public void RunVnsTspSampleTest() { 913 967 var vns = CreateVnsTspSample(); … … 982 1036 #region Gaussian Process Regression 983 1037 [TestMethod] 1038 [TestCategory("Samples.Create")] 1039 [TestProperty("Time", "medium")] 984 1040 public void CreateGaussianProcessRegressionSampleTest() { 985 1041 var gpr = CreateGaussianProcessRegressionSample(); … … 987 1043 } 988 1044 [TestMethod] 1045 [TestCategory("Samples.Execute")] 1046 [TestProperty("Time", "long")] 989 1047 public void RunGaussianProcessRegressionSample() { 990 1048 var gpr = CreateGaussianProcessRegressionSample(); … … 1021 1079 #region VRP 1022 1080 [TestMethod] 1081 [TestCategory("Samples.Create")] 1082 [TestProperty("Time", "medium")] 1023 1083 public void CreateScatterSearchVRPSampleTest() { 1024 1084 var ss = CreateScatterSearchVRPSample(); … … 1027 1087 1028 1088 [TestMethod] 1089 [TestCategory("Samples.Execute")] 1090 [TestProperty("Time", "long")] 1029 1091 public void RunScatterSearchVRPSampleTest() { 1030 1092 var ss = CreateScatterSearchVRPSample(); … … 1077 1139 #region Scheduling 1078 1140 [TestMethod] 1141 [TestCategory("Samples.Create")] 1142 [TestProperty("Time", "medium")] 1079 1143 public void CreateRAPGASchedulingSampleTest() { 1080 1144 var ss = CreateRAPGASchedulingSample(); … … 1083 1147 1084 1148 [TestMethod] 1149 [TestCategory("Samples.Execute")] 1150 [TestProperty("Time", "long")] 1085 1151 public void RunRAPGASchedulingSampleTest() { 1086 1152 var rapga = CreateRAPGASchedulingSample(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/StorableConstructorTest.cs
r9764 r9783 41 41 42 42 [TestMethod] 43 [TestCategory("General")] 44 [TestCategory("Essential")] 45 [TestProperty("Time", "short")] 43 46 public void TestStorableConstructor() { 44 47 StringBuilder errorMessage = new StringBuilder(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/ThreadSafeLogTest.cs
r9764 r9783 30 30 31 31 [TestMethod] 32 [TestCategory("General")] 33 [TestProperty("Time", "short")] 32 34 public void ThreadSafeLogThreadSafetyTest() { 33 35 int count = 10000; -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/ToStringTest.cs
r9764 r9783 31 31 32 32 private TestContext testContextInstance; 33 /// <summary>34 ///Gets or sets the test context which provides35 ///information about and functionality for the current test run.36 ///</summary>37 33 public TestContext TestContext { 38 get { 39 return testContextInstance; 40 } 41 set { 42 testContextInstance = value; 43 } 34 get { return testContextInstance; } 35 set { testContextInstance = value; } 44 36 } 45 37 … … 51 43 52 44 [TestMethod] 45 [TestCategory("General")] 46 [TestCategory("Essential")] 47 [TestProperty("Time", "long")] 53 48 public void TestToString() { 54 49 bool success = true; … … 57 52 try { 58 53 item.ToString(); 59 } catch (Exception e) { 54 } 55 catch (Exception e) { 60 56 TestContext.WriteLine(item.GetType() + " throws a " + e.GetType() + " in the ToString method."); 61 57 success = false; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessFunctionsTest.cs
r9764 r9783 30 30 public class GaussianProcessFunctionsTest { 31 31 [TestMethod] 32 [TestCategory("Algorithms.DataAnalysis")] 33 [TestProperty("Time", "short")] 32 34 public void MeanConstTest() { 33 35 TestMeanFunction(new MeanConst(), 0, … … 42 44 43 45 [TestMethod] 46 [TestCategory("Algorithms.DataAnalysis")] 47 [TestProperty("Time", "short")] 44 48 public void MeanZeroTest() { 45 49 TestMeanFunction(new MeanZero(), 0, … … 54 58 55 59 [TestMethod] 60 [TestCategory("Algorithms.DataAnalysis")] 61 [TestProperty("Time", "short")] 56 62 public void MeanSumTest() { 57 63 var sum = new MeanSum(); … … 79 85 } 80 86 [TestMethod] 87 [TestCategory("Algorithms.DataAnalysis")] 88 [TestProperty("Time", "short")] 81 89 public void MeanProdTest() { 82 90 var prod = new MeanProduct(); … … 150 158 151 159 [TestMethod] 160 [TestCategory("Algorithms.DataAnalysis")] 161 [TestProperty("Time", "short")] 152 162 public void MeanLinear() { 153 163 TestMeanFunction(new MeanLinear(), 0, … … 176 186 177 187 [TestMethod] 188 [TestCategory("Algorithms.DataAnalysis")] 189 [TestProperty("Time", "short")] 178 190 public void CovSeIsoTest() { 179 191 TestCovarianceFunction(new CovarianceSquaredExponentialIso(), 0, … … 264 276 265 277 [TestMethod] 278 [TestCategory("Algorithms.DataAnalysis")] 279 [TestProperty("Time", "short")] 266 280 public void CovNnTest() { 267 281 TestCovarianceFunction(new CovarianceNeuralNetwork(), 0, … … 353 367 354 368 [TestMethod] 369 [TestCategory("Algorithms.DataAnalysis")] 370 [TestProperty("Time", "short")] 355 371 public void CovRQIsoTest() { 356 372 TestCovarianceFunction(new CovarianceRationalQuadraticIso(), 0, … … 466 482 467 483 [TestMethod] 484 [TestCategory("Algorithms.DataAnalysis")] 485 [TestProperty("Time", "short")] 468 486 public void CovRQArdTest() { 469 487 TestCovarianceFunction(new CovarianceRationalQuadraticArd(), 0, … … 690 708 691 709 [TestMethod] 710 [TestCategory("Algorithms.DataAnalysis")] 711 [TestProperty("Time", "short")] 692 712 public void CovMaternIsoTest() { 693 713 var cov = new CovarianceMaternIso(); … … 875 895 876 896 [TestMethod] 897 [TestCategory("Algorithms.DataAnalysis")] 898 [TestProperty("Time", "short")] 877 899 public void CovLinearTest() { 878 900 TestCovarianceFunction(new CovarianceLinear(), 0, … … 897 919 898 920 [TestMethod] 921 [TestCategory("Algorithms.DataAnalysis")] 922 [TestProperty("Time", "short")] 899 923 public void CovLinearArdTest() { 900 924 TestCovarianceFunction(new CovarianceLinearArd(), 0, … … 1069 1093 1070 1094 [TestMethod] 1095 [TestCategory("Algorithms.DataAnalysis")] 1096 [TestProperty("Time", "short")] 1071 1097 public void CovPeriodicTest() { 1072 1098 TestCovarianceFunction(new CovariancePeriodic(), 0, … … 1187 1213 1188 1214 [TestMethod] 1215 [TestCategory("Algorithms.DataAnalysis")] 1216 [TestProperty("Time", "short")] 1189 1217 public void CovSEardTest() { 1190 1218 TestCovarianceFunction(new CovarianceSquaredExponentialArd(), 0, … … 1384 1412 1385 1413 [TestMethod] 1414 [TestCategory("Algorithms.DataAnalysis")] 1415 [TestProperty("Time", "short")] 1386 1416 public void CovSumTest() { 1387 1417 var cov = new CovarianceSum(); … … 1482 1512 1483 1513 [TestMethod] 1514 [TestCategory("Algorithms.DataAnalysis")] 1515 [TestProperty("Time", "short")] 1484 1516 public void CovScaleTest() { 1485 1517 var cov = new CovarianceScale(); … … 1604 1636 1605 1637 [TestMethod] 1638 [TestCategory("Algorithms.DataAnalysis")] 1639 [TestProperty("Time", "short")] 1606 1640 public void CovProdTest() { 1607 1641 var cov = new CovarianceProduct(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessModelTest.cs
r9764 r9783 21 21 22 22 using System.Linq; 23 using HeuristicLab.Algorithms.DataAnalysis;24 23 using HeuristicLab.Problems.Instances.DataAnalysis; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 31 [TestMethod] 33 32 [DeploymentItem(@"HeuristicLab.Algorithms.DataAnalysis-3.4/co2.txt")] 33 [TestCategory("General")] 34 [TestProperty("Time", "medium")] 34 35 public void GaussianProcessModelOutputTest() { 35 36 var provider = new RegressionCSVInstanceProvider(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessRegressionTest.cs
r9764 r9783 23 23 using System.Linq; 24 24 using System.Threading; 25 using HeuristicLab.Algorithms.DataAnalysis;26 25 using HeuristicLab.Common; 27 26 using HeuristicLab.Problems.DataAnalysis; … … 36 35 37 36 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 37 public TestContext TestContext { 44 get { 45 return testContextInstance; 46 } 47 set { 48 testContextInstance = value; 49 } 38 get { return testContextInstance; } 39 set { testContextInstance = value; } 50 40 } 51 41 … … 54 44 55 45 [TestMethod] 46 [TestCategory("Algorithms.DataAnalysis")] 47 [TestProperty("Time", "long")] 56 48 public void GaussianProcessRegressionPerformanceTest() { 57 49 ex = null; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/SupportVectorMachineTest.cs
r9782 r9783 54 54 55 55 [TestMethod] 56 [TestCategory("Algorithms.DataAnalysis")] 57 [TestProperty("Time", "medium")] 56 58 public void SupportVectorMachinePerformanceTest() { 57 59 ex = null; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Analysis-3.3/MultidimensionalScalingTest.cs
r9764 r9783 22 22 using System; 23 23 using System.Globalization; 24 using HeuristicLab.Analysis;25 24 using HeuristicLab.Data; 26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 30 29 public class MultidimensionalScalingTest { 31 30 [TestMethod] 31 [TestCategory("Algorithms.DataAnalysis")] 32 [TestProperty("Time", "short")] 32 33 public void TestGoodnessOfFit() { 33 34 double stress; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Collections-3.3/BidirectionalDictionaryTest.cs
r9764 r9783 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Collections;26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 26 … … 46 45 47 46 [TestMethod] 47 [TestCategory("General")] 48 [TestProperty("Time", "short")] 48 49 public void TestBidirectionalDictionary() { 49 50 var dict1 = new BidirectionalDictionary<int, double>(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Collections-3.3/BidirectionalLookupTest.cs
r9764 r9783 22 22 using System.Collections.Generic; 23 23 using System.Linq; 24 using HeuristicLab.Collections;25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 25 … … 45 44 46 45 [TestMethod] 46 [TestCategory("General")] 47 [TestProperty("Time", "short")] 47 48 public void TestBidirectionalLookup() { 48 49 var lookup1 = new BidirectionalLookup<int, double>(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Collections-3.3/ObservableKeyedListTest.cs
r9764 r9783 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Collections;26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 26 … … 40 39 41 40 [TestMethod] 41 [TestCategory("General")] 42 [TestProperty("Time", "short")] 42 43 public void KeyedListAddDuplicateItemTest() { 43 44 var list = new IntKeyedList();
Note: See TracChangeset
for help on using the changeset viewer.