src/GenFx.Components.Tests/IntegerListEntityTest.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 IntegerListEntity_Serialization()
        {
            IntegerListEntity entity = new IntegerListEntity();
            entity.MinElementValue = 10;
            entity.MaxElementValue = 11;
            entity.RequiresUniqueElementValues = true;
            IntegerListEntity result = (IntegerListEntity)SerializationHelper.TestSerialization(entity, new Type[0]);
            Assert.Equal(entity.MinElementValue, result.MinElementValue);
            Assert.Equal(entity.MaxElementValue, result.MaxElementValue);
            Assert.Equal(entity.RequiresUniqueElementValues, result.RequiresUniqueElementValues);
        }
[ Fact ] public void IntegerListEntity_Serialization ( ) { IntegerListEntity entity = new IntegerListEntity ( ) ; entity . MinElementValue = 10 ; entity . MaxElementValue = 11 ; entity . RequiresUniqueElementValues = true ; IntegerListEntity result = ( IntegerListEntity ) SerializationHelper . TestSerialization ( entity , new Type [ 0 ] ) ; Assert . Equal ( entity . MinElementValue , result . MinElementValue ) ; Assert . Equal ( entity . MaxElementValue , result . MaxElementValue ) ; Assert . Equal ( entity . RequiresUniqueElementValues , result . RequiresUniqueElementValues ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .