示例#1
0
        public void Ctor_Browsable(bool browsable)
        {
            var attribute = new BrowsableAttribute(browsable);

            Assert.Equal(browsable, attribute.Browsable);
            Assert.Equal(browsable, attribute.IsDefaultAttribute());
        }
示例#2
0
 public void DefaultProperties_GetBrowsable_ReturnsExpected(BrowsableAttribute attribute, bool expectedBrowsable)
 {
     Assert.Equal(expectedBrowsable, attribute.Browsable);
     Assert.Equal(expectedBrowsable, attribute.IsDefaultAttribute());
 }