src/GenFx.Components.Tests/BoltzmannSelectionOperatorTest.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 BoltzmannSelectionOperator_Serialization()
        {
            FakeBoltzmannSelectionOperator op = new FakeBoltzmannSelectionOperator
            {
                InitialTemperature = 1,
                CurrentTemperature = 2
            };
            FakeBoltzmannSelectionOperator result = (FakeBoltzmannSelectionOperator)SerializationHelper.TestSerialization(op, new Type[0]);
            Assert.Equal(1, result.InitialTemperature);
            Assert.Equal(2, result.CurrentTemperature);
        }
[ Fact ] public void BoltzmannSelectionOperator_Serialization ( ) { FakeBoltzmannSelectionOperator op = new FakeBoltzmannSelectionOperator { InitialTemperature = 1 , CurrentTemperature = 2 } ; FakeBoltzmannSelectionOperator result = ( FakeBoltzmannSelectionOperator ) SerializationHelper . TestSerialization ( op , new Type [ 0 ] ) ; Assert . Equal ( 1 , result . InitialTemperature ) ; Assert . Equal ( 2 , result . CurrentTemperature ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .