FPCUnit - CheckNotEquals do not affect assert counter
Original Reporter info from Mantis: Fr0sT
-
Reporter name:
Original Reporter info from Mantis: Fr0sT
- Reporter name:
Description:
Currently CheckNotEquals, CheckTrue, CheckFalse methods do not change AssertCount field thus triggering false positive of assert count check. I suggest simple patch to solve this issue.
Steps to reproduce:
Create a test with one of mentioned methods
Set TTestCase.CheckAssertCalled := True
Run test
Observe "N assertions were called" error
Additional information:
In general, I'm not sure if changing this counter in every method is OK. Seems more logical to call some basic method like AssertTrue(True) or something.
Mantis conversion info:
- Mantis ID: 34075
- OS: Windows
- OS Build: 7
- Platform: x86_64
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 39544 (#dcf685b8)
- Monitored by: » Fr0sT (Fr0sT)
- Target version: 3.2.0