src/GenFx.Tests/FitnessEvaluatorTest.cs
/// <summary>
/// Tests that the object can be serialized and deserialized.
/// </summary>
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .
[Fact]
        public void FitnessEvaluator_Serialization()
        {
            MockFitnessEvaluator evaluator = new MockFitnessEvaluator();
            evaluator.EvaluationMode = FitnessEvaluationMode.Maximize;
            MockFitnessEvaluator result = (MockFitnessEvaluator)SerializationHelper.TestSerialization(evaluator, new Type[0]);
            Assert.Equal(evaluator.EvaluationMode, result.EvaluationMode);
        }
[ Fact ] public void FitnessEvaluator_Serialization ( ) { MockFitnessEvaluator evaluator = new MockFitnessEvaluator ( ) ; evaluator . EvaluationMode = FitnessEvaluationMode . Maximize ; MockFitnessEvaluator result = ( MockFitnessEvaluator ) SerializationHelper . TestSerialization ( evaluator , new Type [ 0 ] ) ; Assert . Equal ( evaluator . EvaluationMode , result . EvaluationMode ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .