public static void NegTest1()
{
Assembly element = null;
Type attributeType = typeof(DerivedAttribute1);
Type clsType = typeof(DerivedClass);
Assert.Throws<ArgumentNullException>(() => Attribute.GetCustomAttribute(element, attributeType));
attributeType = null;
element = typeof(AttributeGetCustomAttributes).Assembly; ;
Assert.Throws<ArgumentNullException>(() => Attribute.GetCustomAttribute(element, attributeType));
attributeType = typeof(myClass);
Assert.Throws<ArgumentException>(() => Attribute.GetCustomAttribute(element, attributeType));
attributeType = typeof(Attribute);
Assert.Throws<AmbiguousMatchException>(() => Attribute.GetCustomAttribute(element, attributeType));
}
[Fact]