コード例 #1
0
 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));
 }
コード例 #2
0
 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);
 }