Tests.CustomAttributeProviderExtensionsTests.ContainsAttributeReturnsTrueForMethodThatDoesNotHaveAttributeApplied C# (CSharp) Method

ContainsAttributeReturnsTrueForMethodThatDoesNotHaveAttributeApplied() private method

        public void ContainsAttributeReturnsTrueForMethodThatDoesNotHaveAttributeApplied()
        {
            var mi = typeof(string).GetMethod("Equals", new[] { typeof(object) });
            Assert.IsFalse(mi.ContainsAttribute("ObsoleteAttribute"));
        }