Skip to content

Commit

Permalink
Fix the build warning in the tests project
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhg committed Apr 14, 2022
1 parent ea6c4f2 commit 9b45501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ public void ActionRoutingConventionTestDataWithCaseInsensitiveActionNameRunsAsEx
// Act
ActionConvention.AppliesToAction(context);


// Assert
Assert.Equal(templates.Length, action.Selectors.Count);
Assert.Equal(templates, action.Selectors.Select(s => s.AttributeRouteModel.Template));
Expand All @@ -328,6 +327,7 @@ public void ActionRoutingConventionDoesCaseSensitiveMatchingByDefault(Type contr
// Assert
SelectorModel selector = Assert.Single(action.Selectors);
Assert.Null(selector.AttributeRouteModel);
Assert.NotEmpty(templates);
}

[Theory]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ public void FunctionRoutingConventionCaseSensitiveByDefault(Type controllerType,
// Assert
SelectorModel selector = Assert.Single(action.Selectors);
Assert.Null(selector.AttributeRouteModel);
Assert.NotEmpty(templates);
}

public static TheoryDataSet<MethodInfo, string[]> OverloadFunctionTestData
Expand Down

0 comments on commit 9b45501

Please sign in to comment.