Skip to content

Commit

Permalink
Remove assert on exception message. Fixes NancyFx#2565
Browse files Browse the repository at this point in the history
  • Loading branch information
khellang committed Sep 15, 2016
1 parent f4b801f commit 2af2326
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/Nancy.Tests/Unit/HttpLinkFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ public void Add_duplicate_parameter_in_different_casing_throws_argument_exceptio
var link = new HttpLink("http://nancyfx.org/", "home");
link.Parameters.Add("up", "up");

// When
var exception = Assert.Throws<ArgumentException>(() => link.Parameters.Add("UP", "UP"));

// Then
exception.Message.ShouldEqual("An item with the same key has already been added.");
// When, Then
Assert.Throws<ArgumentException>(() => link.Parameters.Add("UP", "UP"));
}

[Fact]
Expand Down

0 comments on commit 2af2326

Please sign in to comment.