diff --git a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/BasicTests.cs b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/BasicTests.cs index 5aefa2b39b..34f3849ccc 100644 --- a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/BasicTests.cs +++ b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/BasicTests.cs @@ -406,8 +406,10 @@ public async Task UsingPageRouteParameterInAttributeRouteWorks() public async Task RedirectToAction_WithEmptyActionName_UsesAmbientValue() { // Arrange - var product = new List>(); - product.Add(new KeyValuePair("SampleInt", "20")); + var product = new List> + { + new KeyValuePair("SampleInt", "20") + }; // Act var response = await Client.PostAsync("/Home/Product", new FormUrlEncodedContent(product));