Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/28/11 22:38:44 (13 years ago)
Author:
mkommend
Message:

#1653: Restructured unit tests.

Location:
branches/Trunk/HeuristicLab.Tests
Files:
2 added
2 copied

Legend:

Unmodified
Added
Removed
  • branches/Trunk/HeuristicLab.Tests/HeuristicLab.Problems.QuadraticAssignment-3.3/QAPLIBInstancesTest.cs

    r6842 r6844  
    2727using System.Text;
    2828using HeuristicLab.Common;
    29 using HeuristicLab.Problems.QuadraticAssignment;
    3029using Microsoft.VisualStudio.TestTools.UnitTesting;
    3130
    32 namespace Tests {
     31namespace HeuristicLab.Problems.QuadraticAssignment.Tests_33 {
    3332  [TestClass]
    3433  public class QAPLIBInstancesTest {
     
    4039        try {
    4140          qap.LoadEmbeddedInstance(instance);
    42         } catch (Exception ex) {
     41        }
     42        catch (Exception ex) {
    4343          failedInstances.AppendLine(instance + ": " + ex.Message);
    4444        }
     
    7272        try {
    7373          qap.LoadEmbeddedInstance(instance);
    74         } catch {
     74        }
     75        catch {
    7576          Assert.Fail("Not all instances load correctly");
    7677        }
     
    7980          try {
    8081            quality = QAPEvaluator.Apply(qap.BestKnownSolution, qap.Weights, qap.Distances);
    81           } catch (Exception ex) {
     82          }
     83          catch (Exception ex) {
    8284            failedInstances.AppendLine("An unknown problem occurred evaluating solution of instance " + instance + ": " + ex.Message);
    8385          }
Note: See TracChangeset for help on using the changeset viewer.