public void GetHashCodeTest ()
		{
			DefaultBindingPropertyAttribute a;

			a = new DefaultBindingPropertyAttribute ("test");
			Assert.IsFalse (0 == a.GetHashCode (), "1");
		}
		public void EqualsTest ()
		{
			DefaultBindingPropertyAttribute a;

			a = new DefaultBindingPropertyAttribute ("test");
			Assert.IsFalse (a.Equals (null), "1");
			Assert.IsFalse (a.Equals (new DefaultBindingPropertyAttribute ("other")), "2");
			Assert.IsFalse (a.Equals (new DefaultBindingPropertyAttribute ("Test")), "3");
			Assert.IsTrue (a.Equals (new DefaultBindingPropertyAttribute ("test")), "4");
		}
		public void CtorTest ()
		{
			DefaultBindingPropertyAttribute a;

			a = new DefaultBindingPropertyAttribute ("test");
			Assert.AreEqual ("test", a.Name, "1");

			a = new DefaultBindingPropertyAttribute ();
			Assert.AreEqual (null, a.Name, "2");
		}
Ejemplo n.º 4
0
        public override bool Equals(object obj)
        {
            DefaultBindingPropertyAttribute other = obj as DefaultBindingPropertyAttribute;

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

            return(name == other.Name);
        }
		static DefaultBindingPropertyAttribute ()
		{
			Default = new DefaultBindingPropertyAttribute ();
		}
Ejemplo n.º 6
0
        public override bool Equals(object obj)
        {
            DefaultBindingPropertyAttribute other = obj as DefaultBindingPropertyAttribute;

            return(other != null && other.Name == name);
        }
Ejemplo n.º 7
0
 static DefaultBindingPropertyAttribute()
 {
     Default = new DefaultBindingPropertyAttribute();
 }
        public override bool Equals(object obj)
        {
            DefaultBindingPropertyAttribute attribute = obj as DefaultBindingPropertyAttribute;

            return((attribute != null) && (attribute.Name == this.name));
        }