public void SetPointValueTest() { ByteEvaluation_Ones target = new ByteEvaluation_Ones(); Point point = new BytePoint(5); Point actual; actual = target.SetPointValue(point); double x = actual.Value - 0.83333333333333337; Assert.IsTrue(Math.Abs(x) < 0.0001); }
public void InitializationTest() { EvaluationIF e = new ByteEvaluation_Ones(); GeneticAlgorithm target = new GeneticAlgorithm(e); InitializationIF expected = new ByteInitialization_Regular(10, 5); InitializationIF actual; target.Initialization = expected; actual = target.Initialization; Assert.AreEqual(expected, actual); }
public void ByteEvaluation_OnesConstructorTest() { ByteEvaluation_Ones target = new ByteEvaluation_Ones(); Assert.AreEqual(target.Type, OperatorType.Byte); }