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.
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.