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