public void HasAttribute_False_Property_InheritenceNotOnProperties() { // Arrange var provider = typeof(ChildPoco).GetProperty(nameof(ChildPoco.MyStringWithAttribute)); // Act var actual = CustomAttributeProviderExtensions.HasAttribute <SimpleAttribute>(provider); // Assert actual.ShouldHaveSameValueAs(false); }
public void HasAttribute_InstanceNull() { // Act CustomAttributeProviderExtensions.HasAttribute <Attribute>(null); }