src/GenFx.Components.Tests/FitnessTargetTerminatorTest.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 FitnessTargetTerminator_Serialization()
        {
            FitnessTargetTerminator terminator = new FitnessTargetTerminator();
            terminator.FitnessTarget = 20;
            terminator.FitnessType = FitnessType.Raw;
            FitnessTargetTerminator result = (FitnessTargetTerminator)SerializationHelper.TestSerialization(terminator, new Type[0]);
            Assert.Equal(terminator.FitnessTarget, result.FitnessTarget);
            Assert.Equal(terminator.FitnessType, result.FitnessType);
        }
[ Fact ] public void FitnessTargetTerminator_Serialization ( ) { FitnessTargetTerminator terminator = new FitnessTargetTerminator ( ) ; terminator . FitnessTarget = 20 ; terminator . FitnessType = FitnessType . Raw ; FitnessTargetTerminator result = ( FitnessTargetTerminator ) SerializationHelper . TestSerialization ( terminator , new Type [ 0 ] ) ; Assert . Equal ( terminator . FitnessTarget , result . FitnessTarget ) ; Assert . Equal ( terminator . FitnessType , result . FitnessType ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .