Changeset 9363 for branches/OaaS/HeuristicLab.Tests/HeuristicLab.Problems.Instances-3.3/QAPLIBInstanceProviderTest.cs
- Timestamp:
- 04/16/13 13:13:41 (11 years ago)
- Location:
- branches/OaaS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 23 24 packages
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.Tests
- Property svn:ignore
-
old new 4 4 *.vs10x 5 5 _ReSharper.HeuristicLab 3.3 Tests 6 *.user 7 *.suo
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.Tests/HeuristicLab.Problems.Instances-3.3/QAPLIBInstanceProviderTest.cs
r7915 r9363 46 46 Assert.IsTrue(erroneousInstances.Length == 0, "Some instances could not be parsed: " + Environment.NewLine + erroneousInstances.ToString()); 47 47 } 48 49 [TestMethod()] 50 public void GetMicroarrayQAPInstanceTest() { 51 var target = new MicroarrayQAPInstanceProvider(); 52 StringBuilder erroneousInstances = new StringBuilder(); 53 int count = 0; 54 foreach (var id in target.GetDataDescriptors()) { 55 try { 56 target.LoadData(id); 57 } catch (Exception ex) { 58 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 59 } 60 count++; 61 } 62 Assert.IsTrue(count > 0, "No problem instances were found."); 63 Assert.IsTrue(erroneousInstances.Length == 0, "Some instances could not be parsed: " + Environment.NewLine + erroneousInstances.ToString()); 64 } 65 66 [TestMethod()] 67 public void GetDreznerQAPInstanceTest() { 68 var target = new DreznerQAPInstanceProvider(); 69 StringBuilder erroneousInstances = new StringBuilder(); 70 int count = 0; 71 foreach (var id in target.GetDataDescriptors()) { 72 try { 73 target.LoadData(id); 74 } catch (Exception ex) { 75 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 76 } 77 count++; 78 } 79 Assert.IsTrue(count > 0, "No problem instances were found."); 80 Assert.IsTrue(erroneousInstances.Length == 0, "Some instances could not be parsed: " + Environment.NewLine + erroneousInstances.ToString()); 81 } 82 83 [TestMethod()] 84 public void GetTaillardQAPInstanceTest() { 85 var target = new TaillardQAPInstanceProvider(); 86 StringBuilder erroneousInstances = new StringBuilder(); 87 int count = 0; 88 foreach (var id in target.GetDataDescriptors()) { 89 try { 90 target.LoadData(id); 91 } catch (Exception ex) { 92 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); 93 } 94 count++; 95 } 96 Assert.IsTrue(count > 0, "No problem instances were found."); 97 Assert.IsTrue(erroneousInstances.Length == 0, "Some instances could not be parsed: " + Environment.NewLine + erroneousInstances.ToString()); 98 } 48 99 } 49 100 }
Note: See TracChangeset
for help on using the changeset viewer.