-
Notifications
You must be signed in to change notification settings - Fork 27
Assertions
For A XojoUnit Example, you used a method of the Assert class called AreEqual. These are the other methods available to help you write your tests:
Checks if the two objects point to different references or instances.
This is the method you will use most often. It is overloaded for these data types: Color, Currency, Date, Double (and array), Int64, Integer (and array), String (and array).
Checks if the two objects point to the same reference or instance, or if two strings are the same (case-sensitive).
Ensures that a given string does not match the RegEx pattern.
Used to manually fail a test and display a message.
Tests if the supplied boolean expression is False.
Tests if the supplied object is Nil.
Tests if the supplied object is not Nil.
Tests if the supplied boolean expression is True.
Ensures that a given string matches a RegEx pattern.
Displays a message in the message area for the test.
Manually passes a test and displays a message.