Skip to content

Commit

Permalink
Merge pull request #474 from JosephWoodward/FixTests
Browse files Browse the repository at this point in the history
Fix broken ShouldHaveFlag tests
  • Loading branch information
josephwoodward committed Jan 19, 2018
2 parents 9b34fb4 + c03f059 commit ea7f88f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Shouldly.Tests/ShouldHaveFlag/ShouldHaveFlagScenario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ public void FlagScenarioShouldFail()
var actual = TestEnum.FlagTwo;
var value = TestEnum.FlagOne;

Verify.ShouldFail(() => actual.ShouldHaveFlag(value, "Some additional context"),
Verify.ShouldFail(() =>
actual.ShouldHaveFlag(value, "Some additional context"),
errorWithSource:
@"Verify
@"actual
should have flag
TestEnum.FlagOne
but had
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ public void FlagScenarioShouldFail()
var actual = TestEnum.FlagOne;
var value = TestEnum.FlagOne;

Verify.ShouldFail(() => actual.ShouldNotHaveFlag(value, "Some additional context"),
Verify.ShouldFail(() =>
actual.ShouldNotHaveFlag(value, "Some additional context"),
errorWithSource:
@"Verify
@"actual
should not have flag
TestEnum.FlagOne
but it had
Expand Down

0 comments on commit ea7f88f

Please sign in to comment.