src/GenFx.Tests/SelectionOperatorTest.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 SelectionOperator_Serialization()
        {
            MockSelectionOperator op = new MockSelectionOperator
            {
                SelectionBasedOnFitnessType = FitnessType.Raw
            };
            MockSelectionOperator result = (MockSelectionOperator)SerializationHelper.TestSerialization(op, new Type[0]);
            Assert.Equal(op.SelectionBasedOnFitnessType, result.SelectionBasedOnFitnessType);
        }
[ Fact ] public void SelectionOperator_Serialization ( ) { MockSelectionOperator op = new MockSelectionOperator { SelectionBasedOnFitnessType = FitnessType . Raw } ; MockSelectionOperator result = ( MockSelectionOperator ) SerializationHelper . TestSerialization ( op , new Type [ 0 ] ) ; Assert . Equal ( op . SelectionBasedOnFitnessType , result . SelectionBasedOnFitnessType ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .