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

Commit 704530c

Browse files
Merge pull request #2566 from khellang/fix-unit-test
Remove assert on exception message.
2 parents 38e7fd8 + 2af2326 commit 704530c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

test/Nancy.Tests/Unit/HttpLinkFixture.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ public void Add_duplicate_parameter_in_different_casing_throws_argument_exceptio
1212
var link = new HttpLink("http://nancyfx.org/", "home");
1313
link.Parameters.Add("up", "up");
1414

15-
// When
16-
var exception = Assert.Throws<ArgumentException>(() => link.Parameters.Add("UP", "UP"));
17-
18-
// Then
19-
exception.Message.ShouldEqual("An item with the same key has already been added.");
15+
// When, Then
16+
Assert.Throws<ArgumentException>(() => link.Parameters.Add("UP", "UP"));
2017
}
2118

2219
[Fact]

0 commit comments

Comments
 (0)