src/GenFx.Components.Tests/TreeEntityBaseTest.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 TreeEntityBase_Serialization()
        {
            TestTreeEntity entity = new TestTreeEntity();
            PrivateObject privObj = new PrivateObject(entity, new PrivateType(typeof(TreeEntityBase)));
            TreeNode node = new TreeNode();
            privObj.SetField("rootNode", node);
            TestTreeEntity result = (TestTreeEntity)SerializationHelper.TestSerialization(entity, new Type[0]);
            Assert.IsType<TreeNode>(result.RootNode);
        }
[ Fact ] public void TreeEntityBase_Serialization ( ) { TestTreeEntity entity = new TestTreeEntity ( ) ; PrivateObject privObj = new PrivateObject ( entity , new PrivateType ( typeof ( TreeEntityBase ) ) ) ; TreeNode node = new TreeNode ( ) ; privObj . SetField ( " " , node ) ; TestTreeEntity result = ( TestTreeEntity ) SerializationHelper . TestSerialization ( entity , new Type [ 0 ] ) ; Assert . IsType < TreeNode > ( result . RootNode ) ; }
Tests that the object can be serialized and deserialized.
Tests that the object can be serialized and deserialized .