26 references to MediaTypeAssert
Microsoft.AspNetCore.Mvc.Core.Test (21)
ContentResultTest.cs (1)
42
MediaTypeAssert
.Equal("text/plain; charset=utf-16", httpContext.Response.ContentType);
ControllerBaseTest.cs (1)
2268
MediaTypeAssert
.Equal(contentType, contentResult.ContentType);
Formatters\FormatFilterTest.cs (4)
54
MediaTypeAssert
.Equal(mediaType, objectResult.ContentTypes[0]);
98
MediaTypeAssert
.Equal(mediaType, objectResult.ContentTypes[0]);
130
MediaTypeAssert
.Equal(mediaType, objectResult.ContentTypes[0]);
353
MediaTypeAssert
.Equal(mediaType, result.ContentTypes[0]);
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);
ProducesAttributeTests.cs (2)
33
MediaTypeAssert
.Equal(mediaType1, objectResult.ContentTypes[0]);
34
MediaTypeAssert
.Equal(mediaType2, objectResult.ContentTypes[1]);
ProducesResponseTypeAttributeTests.cs (2)
21
MediaTypeAssert
.Equal(mediaType1, producesContentAttribute.ContentTypes[0]);
22
MediaTypeAssert
.Equal(mediaType2, producesContentAttribute.ContentTypes[1]);
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);