Ejemplo n.º 1
0
 public void ShouldReplaceNullWithWildCard()
 {
     BrowsablePropertyAttribute attribute = new BrowsablePropertyAttribute(null);
       Assert.AreEqual<string>(BrowsablePropertyAttribute.All, attribute.PropertyName);
 }
Ejemplo n.º 2
0
 public void ShouldAssignBrowsableByDefault()
 {
     BrowsablePropertyAttribute attribute = new BrowsablePropertyAttribute("property");
       Assert.IsTrue(attribute.Browsable);
 }
Ejemplo n.º 3
0
 public void ShouldApplyPropertyName()
 {
     BrowsablePropertyAttribute attribute = new BrowsablePropertyAttribute("property");
       Assert.AreEqual<string>("property", attribute.PropertyName);
 }
Ejemplo n.º 4
0
 public void ShouldApplyWildcard()
 {
     BrowsablePropertyAttribute attribute = new BrowsablePropertyAttribute(false);
       Assert.AreEqual<string>(BrowsablePropertyAttribute.All, attribute.PropertyName);
 }
Ejemplo n.º 5
0
 public void ShouldApplyBrowsableState()
 {
     BrowsablePropertyAttribute attribute = new BrowsablePropertyAttribute(true);
       Assert.IsTrue(attribute.Browsable);
 }