Example #1
0
        public void TestComponentModel()
        {
            WarningException we = new WarningException("a message");
            we = new WarningException(null);

            AreEqual(EditorBrowsableState.Advanced.ToString(), "Advanced");

            EditorBrowsableAttribute eba = new EditorBrowsableAttribute(EditorBrowsableState.Advanced);
            Assert(eba.GetType().IsSubclassOf(typeof(System.Attribute)));
            #if !SILVERLIGHT
            //SilverlightProxies.cs does not define the State property
            AreEqual(eba.State, EditorBrowsableState.Advanced);
            #endif
        }