public void SetUp ()		
		{
			filter = "filter";
			urlTypes = UrlTypes.DocRelative;
			upa = new UrlPropertyAttribute ();
			upa1 = new UrlPropertyAttribute (filter);
			upa2 = new UrlPropertyAttribute (filter, urlTypes);
		}
예제 #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));
        }
예제 #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");

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