Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2566 from khellang/fix-unit-test
Browse files Browse the repository at this point in the history
Remove assert on exception message.
  • Loading branch information
thecodejunkie authored Sep 15, 2016
2 parents 38e7fd8 + 2af2326 commit 704530c
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 704530c

Please sign in to comment.