Changeset 12395 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.VehicleRouting-3.4
- Timestamp:
- 05/20/15 16:41:14 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.VehicleRouting-3.4/VRPInstancesTest.cs
r11171 r12395 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using System.Text; 25 using HeuristicLab.PluginInfrastructure; 26 using HeuristicLab.Problems.Instances.VehicleRouting; 26 using HeuristicLab.Problems.Instances; 27 27 using Microsoft.VisualStudio.TestTools.UnitTesting; 28 28 … … 34 34 [TestProperty("Time", "long")] 35 35 public void TestVRPInstances() { 36 var providers = ApplicationManager.Manager.GetInstances<VRPInstanceProvider>();37 36 var vrp = new VehicleRoutingProblem(); 37 var providers = ProblemInstanceManager.GetProviders(vrp); 38 38 var failedInstances = new StringBuilder(); 39 39 … … 41 41 42 42 foreach (var provider in providers) { 43 var instances = provider.GetDataDescriptors();43 IEnumerable<IDataDescriptor> instances = ((dynamic)provider).GetDataDescriptors(); 44 44 Assert.IsTrue(instances.Any(), "No instances could be found."); 45 45 … … 47 47 try { 48 48 // throws InvalidOperationException if zero or more than one interpreter is found 49 vrp.Load(provider.LoadData(instance));49 ((dynamic)vrp).Load(((dynamic)provider).LoadData(instance)); 50 50 } catch (Exception exc) { 51 failedInstances.AppendLine(instance + ": " + exc.Message);51 failedInstances.AppendLine(instance.Name + ": " + exc.Message); 52 52 } 53 53 }
Note: See TracChangeset
for help on using the changeset viewer.