public void TestSerialization()
        {
            AttributeTable attributeTable = new AttributeTable {
                { "one", 1 }
            };

            SerializationTestUtils.TestXmlSerialization(attributeTable);
        }
        public void TestSerializationNullValue()
        {
            AttributeTable attributeTable = new AttributeTable {
                { "null", null }
            };

            SerializationTestUtils.TestXmlSerialization(attributeTable);
        }
        public void TestSerialization()
        {
            TestClass testClass = new TestClass {
                Types = new List <Type> {
                    typeof(int), typeof(string)
                }
            };

            SerializationTestUtils.TestXmlSerialization(testClass);
        }
示例#4
0
 public void TestSerialization()
 {
     SerializationTestUtils.TestXmlSerialization(this.blueprintManager);
 }
示例#5
0
 public void TestComponentTypesSerialization()
 {
     this.blueprint.ComponentTypes.Add(typeof(TestComponent));
     SerializationTestUtils.TestXmlSerialization(this.blueprint);
 }
示例#6
0
 public void TestAttributeTableSerialization()
 {
     this.blueprint.AttributeTable.Add(AttributeKey, AttributeValue);
     SerializationTestUtils.TestXmlSerialization(this.blueprint);
 }
示例#7
0
 public void TestAttributeTableAndComponentTypesSerialization()
 {
     this.blueprint.AttributeTable.Add(AttributeKey, AttributeValue);
     this.blueprint.ComponentTypes.Add(typeof(TestComponent));
     SerializationTestUtils.TestXmlSerialization(this.blueprint);
 }