public void PropertyWithAttributes_HasAttributes() { var property = new PropertyInfoWrapper(typeof(ContainerClass).GetProperties().Single(x => x.Name == "PublicPropertyWithAttributes")); var SUT = new PropertyData(property); Assert.That(SUT.AttributeData.Count > 0); Assert.That(SUT.AttributeData.Any(x => x.Name == typeof(TestAttributeAttribute).FullName)); }
public void PublicPropertyAccessLevel_IsPublic() { var property = new PropertyInfoWrapper(typeof(ContainerClass).GetProperties().Single(x => x.Name == "PublicPropertyWithAttributes")); var SUT = new PropertyData(property); Assert.That(SUT.GetterAccessLevel == AccessLevelEnum.Public); }