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

Remove assert on exception message. #2566

Merged
merged 1 commit into from
Sep 15, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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