Changeset 17226 for branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/CollectObjectGraphTest.cs
- Timestamp:
- 08/29/19 15:57:35 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests
- Property svn:mergeinfo changed
/branches/2435-alglib_3_15/HeuristicLab.Tests (added) merged: 17034 /trunk/HeuristicLab.Tests merged: 16997,17019,17021,17024,17033,17037,17125,17180
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/CollectObjectGraphTest.cs
r16723 r17226 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2019Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using System.Linq; 26 26 using System.Threading.Tasks; 27 using HEAL.Attic; 27 28 using HeuristicLab.Algorithms.GeneticAlgorithm; 28 29 using HeuristicLab.Common; 29 30 using HeuristicLab.Optimization; 30 using HeuristicLab.Persistence.Default.Xml;31 31 using HeuristicLab.Problems.TestFunctions; 32 32 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 35 35 [TestClass] 36 36 public class CollectObjectGraphTest { 37 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 37 38 38 39 private TestContext testContextInstance; … … 48 49 [TestProperty("Time", "medium")] 49 50 public void TestObjectGraphTraversal() { 50 GeneticAlgorithm ga = (GeneticAlgorithm) XmlParser.Deserialize(@"Test Resources\GA_SymbReg.hl");51 GeneticAlgorithm ga = (GeneticAlgorithm)serializer.Deserialize(@"Test Resources\GA_SymbReg.hl"); 51 52 var objects = ga.GetObjectGraphObjects().ToList(); 52 53 … … 60 61 [TestProperty("Time", "medium")] 61 62 public void CollectGASample() { 62 GeneticAlgorithm ga = (GeneticAlgorithm) XmlParser.Deserialize(@"Test Resources\GA_SymbReg.hl");63 GeneticAlgorithm ga = (GeneticAlgorithm)serializer.Deserialize(@"Test Resources\GA_SymbReg.hl"); 63 64 64 65 Stopwatch watch = new Stopwatch();
Note: See TracChangeset
for help on using the changeset viewer.