Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DataBindingHandlerAttribute attribute = obj as DataBindingHandlerAttribute;

            return((attribute != null) && (string.Compare(this.HandlerTypeName, attribute.HandlerTypeName, StringComparison.Ordinal) == 0));
        }
        public override bool Equals(object obj)
        {
            DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute;

            if (other == null)
            {
                return(false);
            }

            return(HandlerTypeName.Equals(other.HandlerTypeName));
        }
        /// <internalonly/>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute;

            if (other != null)
            {
                return(String.Compare(HandlerTypeName, other.HandlerTypeName,
                                      StringComparison.Ordinal) == 0);
            }

            return(false);
        }
		public void CtorType_Deny_Unrestricted ()
		{
			DataBindingHandlerAttribute a = new DataBindingHandlerAttribute (GetType ());
			Assert.IsTrue (a.HandlerTypeName.StartsWith ("MonoCasTests.System.Web.UI.DataBindingHandlerAttributeCas"), "HandlerTypeName");
		}
		public void CtorString_Deny_Unrestricted ()
		{
			DataBindingHandlerAttribute a = new DataBindingHandlerAttribute ("mono");
			Assert.AreEqual ("mono", a.HandlerTypeName, "HandlerTypeName");
		}
		public void Ctor_Deny_Unrestricted ()
		{
			DataBindingHandlerAttribute a = new DataBindingHandlerAttribute ();
			Assert.AreEqual (String.Empty, a.HandlerTypeName, "HandlerTypeName");
		}
		public void TestDefaultConstructor ()
		{
			DataBindingHandlerAttribute at = new DataBindingHandlerAttribute ();
			Assert.AreEqual (String.Empty, at.HandlerTypeName, "#01");
		}
		public void SetUp ()
		{
			attr = new DataBindingHandlerAttribute (t);
			empty = DataBindingHandlerAttribute.Default;
		}
		static DataBindingHandlerAttribute ()
		{
			Default = new DataBindingHandlerAttribute ();
		}
 static DataBindingHandlerAttribute()
 {
     Default = new DataBindingHandlerAttribute();
 }