public void Equals () { ContentDisposition dummy1 = new ContentDisposition (); dummy1.FileName = "genome.jpeg"; ContentDisposition dummy2 = new ContentDisposition ("attachment; filename=genome.jpeg"); Assert.IsTrue (dummy1.Equals (dummy2)); }
public void EqualsHashCode () { ContentDisposition dummy1 = new ContentDisposition (); dummy1.Inline = true; ContentDisposition dummy2 = new ContentDisposition ("inline"); Assert.IsTrue (dummy1.Equals (dummy2)); Assert.IsFalse (dummy1 == dummy2); Assert.IsTrue (dummy1.GetHashCode () == dummy2.GetHashCode ()); }