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"); }
public void TestEquals () { upa = new UrlPropertyAttribute ("sanjay"); Assert.IsFalse (upa.Equals (upa1), "Equals#1"); }