Used for testing that default values are supplied for the ctor args.
Inheritance: System.Attribute
        public void CreateCustomAttributeUsingExplicitValuesForTheConstructorAndASourceAttribute()
        {
            CustomAttributeBuilder builder = null;
            const string expectedName = "Rick";
            const int expectedAge = 30;
            AnotherCustomAttribute source = new AnotherCustomAttribute(expectedName, expectedAge, false);
            builder = ReflectionUtils.CreateCustomAttribute(typeof(AnotherCustomAttribute), new object[]
                {
                    "Hoop", 2, true
                }, source);
            Assert.IsNotNull(builder);

            AnotherCustomAttribute att
                = (AnotherCustomAttribute)CheckForPresenceOfCustomAttribute(builder, typeof(AnotherCustomAttribute));
            Assert.AreEqual(expectedName, att.Name);
            Assert.AreEqual(expectedAge, att.Age);
            Assert.IsFalse(att.HasSwallowedExplosives);
        }
        public void CreateCustomAttributeFromSourceAttribute()
        {
            CustomAttributeBuilder builder = null;
            AnotherCustomAttribute source = new AnotherCustomAttribute("Rick", 30, true);
            builder = ReflectionUtils.CreateCustomAttribute(source);
            Assert.IsNotNull(builder);

            AnotherCustomAttribute att
                = (AnotherCustomAttribute)CheckForPresenceOfCustomAttribute(builder, typeof(AnotherCustomAttribute));
            Assert.AreEqual(source.Name, att.Name);
            Assert.AreEqual(source.Age, att.Age);
            Assert.AreEqual(source.HasSwallowedExplosives, att.HasSwallowedExplosives);
        }