Base:
9 references to Equals
Microsoft.Net.Http.Headers.Tests (9)
ContentDispositionHeaderValueTest.cs (9)
464Assert.False(contentDisposition1.Equals(contentDisposition2), "No params vs. name."); 465Assert.False(contentDisposition2.Equals(contentDisposition1), "name vs. no params."); 466Assert.False(contentDisposition1.Equals(null), "No params vs. <null>."); 467Assert.False(contentDisposition1!.Equals(contentDisposition3), "No params vs. custom param."); 468Assert.False(contentDisposition2.Equals(contentDisposition3), "name vs. custom param."); 469Assert.True(contentDisposition1.Equals(contentDisposition4), "Different casing."); 470Assert.True(contentDisposition2.Equals(contentDisposition5), "Different casing in name."); 471Assert.False(contentDisposition5.Equals(contentDisposition6), "name vs. custom param."); 472Assert.False(contentDisposition1.Equals(contentDisposition7), "inline vs. text/other.");