public void SerializeDeserializeTest()
        {
            StringAttributeType originalObject = new StringAttributeType
            {
                Key          = "My Attribute",
                DefaultValue = "World",
                Required     = true
            };

            string serialObjected = originalObject.Serialize();

            StringAttributeType uut = new StringAttributeType();

            uut.Deserialize(serialObjected);

            Assert.AreEqual(originalObject.Key, uut.Key);
            Assert.AreEqual(originalObject.Required, uut.Required);
            Assert.AreEqual(originalObject.DefaultValue, uut.DefaultValue);
        }
        public void DeserializeTest1()
        {
            const string json =
                @"
{
    ""Key"": ""Test Attribute"",
    ""AttributeType"": 2,
    ""Required"": false,
    ""PossibleValues"": null,
    ""DefaultValue"": null
}
";
            StringAttributeType uut = new StringAttributeType();

            uut.Deserialize(json);

            Assert.AreEqual("Test Attribute", uut.Key);
            Assert.AreEqual(false, uut.Required);
            Assert.IsNull(uut.DefaultValue);
        }