public
Created

  • Download Gist
gistfile1.cs
C#
1 2 3 4 5 6 7 8 9 10
[Test]
public void When_navigating_to_manage_categories_add_url_result_is_correct()
{
const string expectedAction = "add";
const string expectedController = "Admin";
const string url = "~/admin/categories/add";
var result = GetRouteData(url);
result.Values["Action"].Should().Be(expectedAction);
result.Values["Controller"].Should().Be(expectedController);
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.