Changeset 11205 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/PWRPPXCrossoverTest.cs
- Timestamp:
- 07/18/14 13:44:53 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/PWRPPXCrossoverTest.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 27 28 namespace HeuristicLab.Encodings.ScheduleEncoding_33.Tests { 29 30 28 namespace HeuristicLab.Encodings.ScheduleEncoding.Tests { 31 29 /// <summary> 32 30 ///This is a test class for PWRPPXCrossoverTest and is intended … … 35 33 [TestClass()] 36 34 public class PWRPPXCrossoverTest { 37 38 39 private TestContext testContextInstance;40 41 /// <summary>42 ///Gets or sets the test context which provides43 ///information about and functionality for the current test run.44 ///</summary>45 public TestContext TestContext {46 get {47 return testContextInstance;48 }49 set {50 testContextInstance = value;51 }52 }53 54 #region Additional test attributes55 //56 //You can use the following additional attributes as you write your tests:57 //58 //Use ClassInitialize to run code before running the first test in the class59 //[ClassInitialize()]60 //public static void MyClassInitialize(TestContext testContext)61 //{62 //}63 //64 //Use ClassCleanup to run code after all tests in a class have run65 //[ClassCleanup()]66 //public static void MyClassCleanup()67 //{68 //}69 //70 //Use TestInitialize to run code before running each test71 //[TestInitialize()]72 //public void MyTestInitialize()73 //{74 //}75 //76 //Use TestCleanup to run code after each test has run77 //[TestCleanup()]78 //public void MyTestCleanup()79 //{80 //}81 //82 #endregion83 84 85 35 /// <summary> 86 36 ///A test for Apply 87 37 ///</summary> 88 [TestMethod()] 38 [TestMethod] 39 [TestCategory("Encodings.Schedule")] 40 [TestProperty("Time", "short")] 89 41 public void ApplyTest() { 90 42 IRandom random = new TestRandom(new int[] { 1, 1, 0, 0, 1, 1, 0, 0, 1 }, null); … … 95 47 PWREncoding actual; 96 48 actual = PWRPPXCrossover.Apply(random, parent1, parent2); 97 Assert.IsTrue( actual.Equals(expected));49 Assert.IsTrue(TestUtils.PRWEncodingEquals(expected, actual)); 98 50 } 99 51 }
Note: See TracChangeset
for help on using the changeset viewer.