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