14 references to GetEncoding
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\ContentResultExecutor.cs (1)
45
MediaType.
GetEncoding
,
Infrastructure\SystemTextJsonResultExecutor.cs (1)
47
MediaType.
GetEncoding
,
Microsoft.AspNetCore.Mvc.Core.Test (3)
ControllerBaseTest.cs (3)
2206
Assert.Null(MediaType.
GetEncoding
(actualContentResult.ContentType));
2222
Assert.Same(Encoding.UTF8, MediaType.
GetEncoding
(actualContentResult.ContentType));
2254
Assert.Null(MediaType.
GetEncoding
(contentResult.ContentType));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonResultExecutor.cs (1)
81
MediaType.
GetEncoding
,
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
PageModelTest.cs (3)
1591
Assert.Null(MediaType.
GetEncoding
(actualContentResult.ContentType));
1607
Assert.Same(Encoding.UTF8, MediaType.
GetEncoding
(actualContentResult.ContentType));
1639
Assert.Null(MediaType.
GetEncoding
(contentResult.ContentType));
PageTest.cs (3)
1581
Assert.Null(MediaType.
GetEncoding
(actualContentResult.ContentType));
1597
Assert.Same(Encoding.UTF8, MediaType.
GetEncoding
(actualContentResult.ContentType));
1629
Assert.Null(MediaType.
GetEncoding
(contentResult.ContentType));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (1)
78
Assert.Equal(encoding, MediaType.
GetEncoding
(contentResult.ContentType));
PartialViewResultExecutorTest.cs (1)
306
Assert.Null(MediaType.
GetEncoding
(contentType));