Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

Location:
trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/Auxiliary.cs

    r3061 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Common;
    2322using HeuristicLab.Encodings.BinaryVectorEncoding;
    2423
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/NPointCrossoverTest.cs

    r3742 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Core;
     23using HeuristicLab.Data;
    2224using HeuristicLab.Encodings.BinaryVectorEncoding;
    2325using Microsoft.VisualStudio.TestTools.UnitTesting;
    24 using HeuristicLab.Common;
    25 using HeuristicLab.Core;
    26 using HeuristicLab.Data;
    27 using HeuristicLab.Parameters;
    2826
    2927namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
     
    112110        BinaryVector actual;
    113111        actual = target.Cross(random, parents);
    114       } catch (System.ArgumentException) {
     112      }
     113      catch (System.ArgumentException) {
    115114        exceptionFired = true;
    116115      }
     
    136135      actual = NPointCrossover.Apply(random, parent1, parent2, n);
    137136      Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(actual, expected));
    138      
     137
    139138      // The following test is based on Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg, p. 48
    140139      random.Reset();
     
    165164      try {
    166165        actual = NPointCrossover.Apply(random, parent1, parent2, n);
    167       } catch (System.ArgumentException) {
     166      }
     167      catch (System.ArgumentException) {
    168168        exceptionFired = true;
    169169      }
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/Properties/AssemblyInfo.cs

    r3742 r4068  
    2121
    2222using System.Reflection;
    23 using System.Runtime.CompilerServices;
    2423using System.Runtime.InteropServices;
    2524
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/SinglePointCrossoverTest.cs

    r3742 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Core;
    2223using HeuristicLab.Encodings.BinaryVectorEncoding;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    24 using HeuristicLab.Common;
    25 using HeuristicLab.Core;
    26 using HeuristicLab.Data;
    27 using HeuristicLab.Parameters;
    2825
    2926namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
     
    112109        BinaryVector actual;
    113110        actual = target.Cross(random, parents);
    114       } catch (System.ArgumentException) {
     111      }
     112      catch (System.ArgumentException) {
    115113        exceptionFired = true;
    116114      }
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/SinglePositionBitflipManipulatorTest.cs

    r3062 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Encodings.BinaryVectorEncoding;
    2223using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.BinaryVectorEncoding;
    24 using HeuristicLab.Data;
    2524
    2625namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/SomePositionsBitflipManipulatorTest.cs

    r3062 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Data;
     23using HeuristicLab.Encodings.BinaryVectorEncoding;
    2224using Microsoft.VisualStudio.TestTools.UnitTesting;
    23 using HeuristicLab.Encodings.BinaryVectorEncoding;
    24 using HeuristicLab.Data;
    2525
    2626namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/UniformCrossoverTest.cs

    r3742 r4068  
    2020#endregion
    2121
     22using HeuristicLab.Core;
    2223using HeuristicLab.Encodings.BinaryVectorEncoding;
    2324using Microsoft.VisualStudio.TestTools.UnitTesting;
    24 using HeuristicLab.Common;
    25 using HeuristicLab.Core;
    26 using HeuristicLab.Data;
    27 using HeuristicLab.Parameters;
    2825
    2926namespace HeuristicLab.Encodings.BinaryVectorEncoding_33.Tests {
     
    112109        BinaryVector actual;
    113110        actual = target.Cross(random, parents);
    114       } catch (System.ArgumentException) {
     111      }
     112      catch (System.ArgumentException) {
    115113        exceptionFired = true;
    116114      }
     
    131129      parent1 = new BinaryVector(new bool[] { false, false, false, false, true, false, false, false, false });
    132130      parent2 = new BinaryVector(new bool[] { true, true, false, true, false, false, false, false, true });
    133       expected = new BinaryVector(new bool[] { false, true, false, false, false, false, false, false, false});
     131      expected = new BinaryVector(new bool[] { false, true, false, false, false, false, false, false, false });
    134132      actual = UniformCrossover.Apply(random, parent1, parent2);
    135133      Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(actual, expected));
     
    143141      actual = UniformCrossover.Apply(random, parent1, parent2);
    144142      Assert.IsTrue(Auxiliary.BinaryVectorIsEqualByPosition(actual, expected));
    145      
     143
    146144      // The following test is not based on any published examples
    147145      random.Reset();
     
    152150      try {
    153151        actual = UniformCrossover.Apply(random, parent1, parent2);
    154       } catch (System.ArgumentException) {
     152      }
     153      catch (System.ArgumentException) {
    155154        exceptionFired = true;
    156155      }
Note: See TracChangeset for help on using the changeset viewer.