shouldly / shouldly

Should testing for .NET—the way assertions should be!

Home Page:https://docs.shouldly.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: ShouldNotBeNegative() and ShouldNotBePositive()

darxis opened this issue · comments

Sometimes you have to check if a number is not negative, then you can use ShouldBeGreaterThanOrEqualTo(0).

It would be more clean to use following extension methods:

x.ShouldNotBeNegative()
x.ShouldNotBePositive()