Catel.Test.Reflection.ReflectionExtensionsFacts.TheGetAttributeMethod.ReturnsAttributeForTypes C# (CSharp) Method

ReturnsAttributeForTypes() private method

private ReturnsAttributeForTypes ( Type type, Type expectedAttributeType, bool isNotNull ) : void
type System.Type
expectedAttributeType System.Type
isNotNull bool
return void
            public void ReturnsAttributeForTypes(Type type, Type expectedAttributeType, bool isNotNull)
            {
                var attribute = type.GetAttribute(expectedAttributeType);

                if (isNotNull)
                {
                    Assert.IsNotNull(attribute);
                }
                else
                {
                    Assert.IsNull(attribute);
                }
            }
ReflectionExtensionsFacts.TheGetAttributeMethod