Should icon indicating copy to clipboard operation
Should copied to clipboard

ShouldBeGreaterThan on nullable int seems broken

Open jstawski opened this issue 10 years ago • 3 comments

The assertion default(Nullable<int>).ShouldBeGreaterThan(0); is not failing, but it should. Is this by design or a bug?

jstawski avatar Aug 18 '14 21:08 jstawski

Hmm let me check for a unit test around that. The assertions are straight from xunit so we where maintaining the same behavior as them

On Monday, August 18, 2014, jstawski [email protected] wrote:

The assertion default(Nullable).ShouldBeGreaterThan(0); is not failing, but it should. Is this by design or a bug?

Reply to this email directly or view it on GitHub https://github.com/erichexter/Should/issues/6.

Eric Hexter

blog | http://Hex.LosTechies.com info | http://www.linkedin.com/in/erichexter

erichexter avatar Aug 19 '14 00:08 erichexter

I think this is a bug, pull request will be accepted.

erichexter avatar Apr 29 '15 14:04 erichexter

Will try to find sometime and go through the code to see if I can fix it

jstawski avatar May 01 '15 15:05 jstawski