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 PublicPropertyDataFromString_IsPublic()
 {
     var testString = "\t\tVoid TestField { public get; public set; }";
     var propertyData = new PropertyData(testString);
     Assert.That(propertyData.GetterAccessLevel == AccessLevelEnum.Public);
 }
 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);
 }
 public void ProtectedPropertyDataFromString_IsProtected()
 {
     var testString = "\t\tVoid TestField { protected get; protected set; }";
     var propertyData = new PropertyData(testString);
     Assert.That(propertyData.GetterAccessLevel == AccessLevelEnum.Protected);
 }
 public void InternalPropertyDataFromString_IsInternal()
 {
     var testString = "\t\tVoid TestField { internal get; internal set; }";
     var propertyData = new PropertyData(testString);
     Assert.That(propertyData.GetterAccessLevel == AccessLevelEnum.Internal);
 }