18 references to Equal
Microsoft.AspNetCore.Mvc.Core.Test (13)
ContentResultTest.cs (1)
42
MediaTypeAssert.
Equal
("text/plain; charset=utf-16", httpContext.Response.ContentType);
ControllerBaseTest.cs (1)
2268
MediaTypeAssert.
Equal
(contentType, contentResult.ContentType);
Formatters\FormatterMappingsTest.cs (1)
39
MediaTypeAssert.
Equal
(contentType, returnMediaType);
Infrastructure\ObjectResultExecutorTest.cs (9)
41
MediaTypeAssert.
Equal
("text/xml; charset=utf-8", httpContext.Response.ContentType);
66
MediaTypeAssert.
Equal
("text/plain; charset=utf-8", httpContext.Response.ContentType);
134
MediaTypeAssert.
Equal
("application/problem+xml; charset=utf-8", httpContext.Response.ContentType);
156
MediaTypeAssert.
Equal
("application/problem+xml; charset=utf-8", httpContext.Response.ContentType);
178
MediaTypeAssert.
Equal
("application/problem+xml; charset=utf-8", httpContext.Response.ContentType);
204
MediaTypeAssert.
Equal
("application/problem+json; charset=utf-8", httpContext.Response.ContentType);
229
MediaTypeAssert.
Equal
("application/problem+xml; charset=utf-8", httpContext.Response.ContentType);
250
MediaTypeAssert.
Equal
("application/problem+xml; charset=utf-8", httpContext.Response.ContentType);
433
MediaTypeAssert.
Equal
(expectedContentType, responseContentType);
VirtualFileResultTest.cs (1)
45
MediaTypeAssert.
Equal
(expectedMediaType, result.ContentType);
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
PageModelTest.cs (1)
1653
MediaTypeAssert.
Equal
(contentType, contentResult.ContentType);
PageTest.cs (1)
1643
MediaTypeAssert.
Equal
(contentType, contentResult.ContentType);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
ViewComponentResultTest.cs (2)
569
MediaTypeAssert.
Equal
(expectedContentType, resultContentType);
575
MediaTypeAssert.
Equal
(contentTypeBeforeViewResultExecution, contentTypeAfterViewResultExecution);
ViewExecutorTest.cs (1)
155
MediaTypeAssert.
Equal
(expectedContentType, context.Response.ContentType);