Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kahbazi committed Jul 6, 2020
1 parent c153533 commit b802607
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public async Task Rejects_MissingRouteId(string routeId)
}

[Theory]
[InlineData(null)]
[InlineData("")]
[InlineData("example.com,")]
public async Task Rejects_MissingHostAndPath(string host)
Expand All @@ -84,7 +85,7 @@ public async Task Rejects_MissingHostAndPath(string host)
{
RouteId = "route1",
ClusterId = "cluster1",
Hosts = host.Split(",")
Hosts = host?.Split(",")
};

// Act
Expand Down

0 comments on commit b802607

Please sign in to comment.