public void SetUp ()		
		{
			filter = "filter";
			urlTypes = UrlTypes.DocRelative;
			upa = new UrlPropertyAttribute ();
			upa1 = new UrlPropertyAttribute (filter);
			upa2 = new UrlPropertyAttribute (filter, urlTypes);
		}
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            UrlPropertyAttribute attribute = obj as UrlPropertyAttribute;

            return((attribute != null) && this.Filter.Equals(attribute.Filter));
        }
Exemplo n.º 3
0
        public override bool Equals(object obj)
        {
            UrlPropertyAttribute upa = (obj as UrlPropertyAttribute);

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

            return(filter.Equals(upa.Filter));
        }
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            UrlPropertyAttribute other = obj as UrlPropertyAttribute;

            if (other != null)
            {
                return(Filter.Equals(other.Filter));
            }

            return(false);
        }
		public void TestEquals ()
		{
			upa = new UrlPropertyAttribute ("sanjay");
			
			Assert.IsFalse (upa.Equals (upa2), "Equals#1");
			//Assert.IsTrue (upa.Equals (upa1), "Equals#2");

			Assert.IsFalse (upa1.Equals (upa2), "Equals#3");
			
			upa1 = new UrlPropertyAttribute ("sanjay", UrlTypes.Absolute);
			Assert.IsFalse (upa2.Equals (upa1), "Equals#4");
			upa1 = new UrlPropertyAttribute ("sanjay", UrlTypes.DocRelative);
			//Assert.IsTrue (upa2.Equals (upa1), "Equals#5");

		}
Exemplo n.º 6
0
		public void TestEquals ()
		{
			upa = new UrlPropertyAttribute ("sanjay");
			Assert.IsFalse (upa.Equals (upa1), "Equals#1");
		}
Exemplo n.º 7
0
		public void SetUp ()		
		{
			filter = "filter";
			upa = new UrlPropertyAttribute ();
			upa1 = new UrlPropertyAttribute (filter);
		}