pollen-not-included/addons/gdUnit4/src/GdUnitAssert.gd
2024-05-02 09:36:31 +01:00

35 lines
721 B
GDScript

## Base interface of all GdUnit asserts
class_name GdUnitAssert
extends RefCounted
## Verifies that the current value is null.
func is_null():
return self
## Verifies that the current value is not null.
func is_not_null():
return self
## Verifies that the current value is equal to expected one.
@warning_ignore("unused_parameter")
func is_equal(expected):
return self
## Verifies that the current value is not equal to expected one.
@warning_ignore("unused_parameter")
func is_not_equal(expected):
return self
func test_fail():
return self
## Overrides the default failure message by given custom message.
@warning_ignore("unused_parameter")
func override_failure_message(message :String):
return self