System.Tests.GetCustomAttribute.PositiveTest5 C# (CSharp) Method

PositiveTest5() private method

private PositiveTest5 ( ) : void
return void
        public static void PositiveTest5()
        {
            Type clsType = typeof(GetCustomAttribute);
            Type attributeType;

            attributeType = typeof(DebuggableAttribute);
            DebuggableAttribute dbgAttr = (DebuggableAttribute)Attribute.GetCustomAttribute(clsType.Module, attributeType);
            Assert.True(dbgAttr != null);

            attributeType = typeof(AssemblyDescriptionAttribute);
            dbgAttr = (DebuggableAttribute)Attribute.GetCustomAttribute(clsType.Module, attributeType);
            Assert.True(dbgAttr == null);

            AssemblyDescriptionAttribute asmdbgAttr = (AssemblyDescriptionAttribute)Attribute.GetCustomAttribute(clsType.Module, attributeType);
            Assert.True(asmdbgAttr == null);
        }