Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShouldBe.GreaterThan cannot effectively assert that id is greater than 0 #4

Open
weijx opened this issue Sep 19, 2021 · 0 comments
Open

Comments

@weijx
Copy link

weijx commented Sep 19, 2021

The test in the example: This line in ShouldBeAssertions.Tests.Samples.Samples.UsingShouldBeAssertions: Id = ShouldBe.GreaterThan(0).NameThis("OrderId").
Id is 2, Is greater than 0, it should pass the test, but the results reported that their values are different: Types [Int32,Int32], Item Left.Id != Right.Id, Values (2,167)
Its logic should be to judge whether Id is greater than 0, but in fact it compares Id with a random number greater than 0 for equality, which is logically wrong.

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

No branches or pull requests

1 participant