src/GenFx.Components.Tests/MultiDemeGeneticAlgorithmTest.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 MultiDemeGeneticAlgorithm_Serialization()
        {
            MultiDemeGeneticAlgorithm algorithm = new MultiDemeGeneticAlgorithm
            {
                MigrantCount = 11,
                MigrateEachGeneration = 3
            };
            MultiDemeGeneticAlgorithm result = (MultiDemeGeneticAlgorithm)SerializationHelper.TestSerialization(
                algorithm, new Type[] { typeof(DefaultTerminator) });
            Assert.Equal(algorithm.MigrantCount, result.MigrantCount);
            Assert.Equal(algorithm.MigrateEachGeneration, result.MigrateEachGeneration);
        }
[ Fact ] public void MultiDemeGeneticAlgorithm_Serialization ( ) { MultiDemeGeneticAlgorithm algorithm = new MultiDemeGeneticAlgorithm { MigrantCount = 11 , MigrateEachGeneration = 3 } ; MultiDemeGeneticAlgorithm result = ( MultiDemeGeneticAlgorithm ) SerializationHelper . TestSerialization ( algorithm , new Type [ ] { typeof ( DefaultTerminator ) } ) ; Assert . Equal ( algorithm . MigrantCount , result . MigrantCount ) ; Assert . Equal ( algorithm . MigrateEachGeneration , result . MigrateEachGeneration ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .