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