src/GenFx.Tests/CrossoverOperatorTest.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 CrossoverOperator_Serialization()
        {
            MockCrossoverOperator op = new MockCrossoverOperator
            {
                CrossoverRate = .5
            };
            MockCrossoverOperator result = (MockCrossoverOperator)SerializationHelper.TestSerialization(op, new Type[0]);
            Assert.Equal(2, result.RequiredParentCount);
            Assert.Equal(.5, result.CrossoverRate);
        }
[ Fact ] public void CrossoverOperator_Serialization ( ) { MockCrossoverOperator op = new MockCrossoverOperator { CrossoverRate = .5 } ; MockCrossoverOperator result = ( MockCrossoverOperator ) SerializationHelper . TestSerialization ( op , new Type [ 0 ] ) ; Assert . Equal ( 2 , result . RequiredParentCount ) ; Assert . Equal ( .5 , result . CrossoverRate ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .