src/GenFx.Components.Tests/FitnessSharingScalingStrategyTest.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 FitnessSharingScalingStrategy_Serialization()
        {
            FakeFitnessSharingScalingStrategy strategy = new FakeFitnessSharingScalingStrategy
            {
                ScalingCurvature = 10,
                ScalingDistanceCutoff = 5
            };
            FakeFitnessSharingScalingStrategy result = (FakeFitnessSharingScalingStrategy)SerializationHelper.TestSerialization(strategy, new Type[0]);
            Assert.Equal(strategy.ScalingCurvature, result.ScalingCurvature);
            Assert.Equal(strategy.ScalingDistanceCutoff, result.ScalingDistanceCutoff);
        }
[ Fact ] public void FitnessSharingScalingStrategy_Serialization ( ) { FakeFitnessSharingScalingStrategy strategy = new FakeFitnessSharingScalingStrategy { ScalingCurvature = 10 , ScalingDistanceCutoff = 5 } ; FakeFitnessSharingScalingStrategy result = ( FakeFitnessSharingScalingStrategy ) SerializationHelper . TestSerialization ( strategy , new Type [ 0 ] ) ; Assert . Equal ( strategy . ScalingCurvature , result . ScalingCurvature ) ; Assert . Equal ( strategy . ScalingDistanceCutoff , result . ScalingDistanceCutoff ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .