public void ValidateAttributeTest()
        {
            AssetNameAttribute attr = new AssetNameAttribute
            {
                Value = null
            };

            AssetNameAttributeType uut = new AssetNameAttributeType
            {
                Key = "Some Asset"
            };

            // Null should throw an exception.
            ListedValidationException e;

            e = Assert.Throws <ListedValidationException>(() => uut.ValidateAttribute(attr));
            Assert.AreEqual(1, e.Errors.Count());

            e = Assert.Throws <ListedValidationException>(() => uut.ValidateAttribute((IAttribute)attr));
            Assert.AreEqual(1, e.Errors.Count());

            attr.Value = "Name";
            Assert.DoesNotThrow(() => uut.ValidateAttribute(attr));
            Assert.DoesNotThrow(() => uut.ValidateAttribute((IAttribute)attr));
        }