Fix break in XmlSerializerOutputFormatter tests

The wrong type is being passed in to the wrapper-provider for
XmlSerializer. DCS formatter is already correct.
This commit is contained in:
Ryan Nowak 2015-10-20 22:25:56 -07:00
parent 800e46eed4
commit 3576939457
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ namespace Microsoft.AspNet.Mvc.Formatters
if (wrappingType != null && wrappingType != context.ObjectType)
{
var wrapperProvider = WrapperProviderFactories.GetWrapperProvider(new WrapperProviderContext(
declaredType: wrappingType,
declaredType: context.ObjectType,
isSerialization: true));
value = wrapperProvider.Wrap(value);