Skip to content

Conversation

@eNeRGy164
Copy link
Contributor

Add assertion method NotBe to BooleanAssertions.

Closes #1285

IMPORTANT

  • The code complies with the Coding Guidelines for C#.
  • The changes are covered by a new or existing set of unit tests which follow the Arrange-Act-Assert syntax such as is used in this example.
  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.

Copy link
Member

@jnyrup jnyrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a line to releases.md as well.

@eNeRGy164 eNeRGy164 requested a review from jnyrup March 29, 2020 21:03
@jnyrup
Copy link
Member

jnyrup commented Mar 30, 2020

@eNeRGy164 If you just rebase on develop to clean out the paramref changes, I believe it's ready to be merged.

@eNeRGy164
Copy link
Contributor Author

That should be it

}

[Fact]
public void Should_fail_when_asserting_boolean_value_not_to_be_equal_to_a_different_value()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this one since you already have a test with because and one without.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same could be said for the existing Should_fail_when_asserting_boolean_value_to_be_equal_to_a_different_value of which this is a copy?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point.

@jnyrup jnyrup merged commit d845ab9 into fluentassertions:develop Mar 31, 2020
@eNeRGy164 eNeRGy164 deleted the boolean.notbe branch March 31, 2020 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BooleanAssertions.NotBe

3 participants