src/GenFx.Tests/ElitismStrategyTest.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 ElitismStrategy_Serialization()
        {
            MockElitismStrategy strategy = new MockElitismStrategy();
            strategy.ElitistRatio = 0.3;
            MockElitismStrategy result = (MockElitismStrategy)SerializationHelper.TestSerialization(strategy, new Type[0]);
            Assert.Equal(0.3, result.ElitistRatio);
        }
[ Fact ] public void ElitismStrategy_Serialization ( ) { MockElitismStrategy strategy = new MockElitismStrategy ( ) ; strategy . ElitistRatio = 0.3 ; MockElitismStrategy result = ( MockElitismStrategy ) SerializationHelper . TestSerialization ( strategy , new Type [ 0 ] ) ; Assert . Equal ( 0.3 , result . ElitistRatio ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .