Skip to content

Commit

Permalink
Merge pull request machine#271 from wallymathieu/patch-1
Browse files Browse the repository at this point in the history
Updated documentation to reflect that ShouldBeOfType is now deprecated and ShouldBeOfExactType should be used. Thanks to NameOfTheDragon.
  • Loading branch information
BrunoJuchli committed Feb 23, 2016
2 parents 569a8b1 + 9a2f2e0 commit cdd8d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public class When_authenticating_a_user_fails_due_to_bad_credentials

Because of = () => Exception = Catch.Exception(() => Subject.Authenticate("username", "password"));

It should_fail = () => Exception.ShouldBeOfType<AuthenticationFailedException>();
It should_fail = () => Exception.ShouldBeOfExactType<AuthenticationFailedException>();
It should_have_a_specific_reason = () => Exception.Message.ShouldContain("credentials");

static SecurityService Subject;
Expand Down

0 comments on commit cdd8d63

Please sign in to comment.