- Timestamp:
- 08/20/14 09:30:37 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering
- Property svn:mergeinfo changed
/trunk/sources merged: 11285-11287
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests merged: 11287
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Tests/HeuristicLab.Problems.VehicleRouting-3.4/VRPInstancesTest.cs
r11185 r11289 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using System.Text; 25 using HeuristicLab.P luginInfrastructure;26 using HeuristicLab. Problems.Instances.VehicleRouting;26 using HeuristicLab.Problems.Instances; 27 using HeuristicLab.Tests; 27 28 using Microsoft.VisualStudio.TestTools.UnitTesting; 28 29 … … 30 31 [TestClass] 31 32 public class VRPInstancesTest { 33 [ClassInitialize] 34 public static void MyClassInitialize(TestContext testContext) { 35 PluginLoader.Assemblies.Any(); 36 } 37 32 38 [TestMethod] 33 39 [TestCategory("Problems.VehicleRouting")] 34 40 [TestProperty("Time", "long")] 35 41 public void TestVRPInstances() { 36 var providers = ApplicationManager.Manager.GetInstances<VRPInstanceProvider>();37 42 var vrp = new VehicleRoutingProblem(); 43 var providers = ProblemInstanceManager.GetProviders(vrp); 38 44 var failedInstances = new StringBuilder(); 39 45 … … 41 47 42 48 foreach (var provider in providers) { 43 var instances = provider.GetDataDescriptors();49 IEnumerable<IDataDescriptor> instances = ((dynamic)provider).GetDataDescriptors(); 44 50 Assert.IsTrue(instances.Any(), "No instances could be found."); 45 51 … … 47 53 try { 48 54 // throws InvalidOperationException if zero or more than one interpreter is found 49 vrp.Load(provider.LoadData(instance));55 ((dynamic)vrp).Load(((dynamic)provider).LoadData(instance)); 50 56 } catch (Exception exc) { 51 57 failedInstances.AppendLine(instance + ": " + exc.Message); -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Tests/HeuristicLab.Tests.csproj
r11091 r11289 330 330 <Private>False</Private> 331 331 </Reference> 332 <Reference Include="Microsoft.CSharp" /> 332 333 <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> 333 334 <Private>false</Private>
Note: See TracChangeset
for help on using the changeset viewer.