Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Simplify collection initialization (#6897)
Browse files Browse the repository at this point in the history
- Addresses VS message "IDE0028 Collection initialization can be simplified"
  • Loading branch information
mikeharder authored Oct 4, 2017
1 parent 950db65 commit 9fbb2f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/Microsoft.AspNetCore.Mvc.FunctionalTests/BasicTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,10 @@ public async Task UsingPageRouteParameterInAttributeRouteWorks()
public async Task RedirectToAction_WithEmptyActionName_UsesAmbientValue()
{
// Arrange
var product = new List<KeyValuePair<string, string>>();
product.Add(new KeyValuePair<string, string>("SampleInt", "20"));
var product = new List<KeyValuePair<string, string>>
{
new KeyValuePair<string, string>("SampleInt", "20")
};

// Act
var response = await Client.PostAsync("/Home/Product", new FormUrlEncodedContent(product));
Expand Down

0 comments on commit 9fbb2f1

Please sign in to comment.