Contains unit tests definitions.
Modules | |
assertions | |
Contains assertions definitions. | |
assumptions | |
Contains assumptions definitions. | |
validations | |
Contains validations definitions. | |
Classes | |
class | xtd::tunit::base_assert |
The base class for assert. More... | |
class | xtd::tunit::class_cleanup_attribute |
This attribute is use to add cleanup class method to class test attribute. More... | |
class | xtd::tunit::class_event_args |
Provides data for the xtd::tunit::class_test events. More... | |
class | xtd::tunit::class_initialize_attribute |
This attribute is use to add initialize class method to class test attribute. More... | |
class | xtd::tunit::console_unit_test |
The console_unit_test class is console unit test interface. More... | |
class | xtd::tunit::event_listener |
Represent the event listener class. Unit test call theses events when unit tests are processing. More... | |
class | xtd::tunit::ostream_event_listener |
The ostream_unit_test class is a specialisation of event_listener class for writing events in std::ostream. More... | |
class | xtd::tunit::ostream_unit_test |
The ostream_unit_test class is ostream unit test interface. More... | |
class | xtd::tunit::registered_test_class |
Represents the registered test class. More... | |
class | xtd::tunit::settings |
The settings class contains xtd.tunit settings. More... | |
class | xtd::tunit::test |
Represents a test method. More... | |
class | xtd::tunit::test_class |
Represents a test class. More... | |
class | xtd::tunit::test_class_attribute< test_class_t > |
Represents a test class attribute. More... | |
class | xtd::tunit::test_cleanup_attribute |
Represents a test cleanup attribute. More... | |
class | xtd::tunit::test_event_args |
Provides data for the xtd::tunit::test events. More... | |
class | xtd::tunit::test_method_attribute |
Represents a test method attribute. More... | |
class | xtd::tunit::tunit_event_args |
tunit_event_args is the base class for classes containing event data. More... | |
class | xtd::tunit::unit_test |
The unit_test class is unit test base interface. More... | |
Macros | |
#define | abort_() |
Abort current test. This is used by the other assert functions. | |
#define | are_equal_(...) |
Asserts that two type are equal. | |
#define | are_not_equal_(...) |
Asserts that two type are not equal. | |
#define | are_not_same_(...) |
Asserts that two objects do refer to differents objects. | |
#define | are_same_(...) |
Asserts that two objects do refer to same objects. | |
#define | contains_(...) |
Asserts that collection contains an item. | |
#define | does_not_throw_(...) |
Asserts that the staement does not throw an exception. | |
#define | fail_(...) |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
#define | ignore_(...) |
Ignore current test. This is used by the other assert functions. | |
#define | is_empty_(...) |
Asserts that collection contains an item. | |
#define | is_false_(...) |
Asserts that a condition is false. | |
#define | is_greater_(...) |
Asserts that the first value is greater than the second value. | |
#define | is_greater_or_equal_(...) |
Asserts that the first value is greater than or equal to the second value. | |
#define | is_instance_of_(type_t, ...) |
Asserts that an object is of the type supplied or a derived type. | |
#define | is_less_(...) |
Asserts that the first value is is_less than the second value. | |
#define | is_less_or_equal_(...) |
Asserts that the first value is is_less than or equal to the second value. | |
#define | is_NaN_(...) |
Asserts that a value is NaN. | |
#define | is_negative_(...) |
Asserts that ta condition is negative. | |
#define | is_not_empty_(...) |
Asserts that collection does not contain any item. | |
#define | is_not_instance_of_(type_t, ...) |
Asserts that an object is not of the type supplied or a derived type. | |
#define | is_not_null_(...) |
Asserts that the pointer is not null. | |
#define | is_not_zero_(...) |
Asserts that ta condition is not zero. | |
#define | is_null_(...) |
Asserts that the pointer is null. | |
#define | is_positive_(...) |
Asserts that ta condition is positive. | |
#define | is_true_(...) |
Asserts that a condition is true. | |
#define | is_zero_(...) |
Asserts that ta condition is zero. | |
#define | succeed_(...) |
Generates a success with a generic message. This is used by the other assert functions. | |
#define | throws_(exception_t, ...) |
Asserts that the statement throws a particular exception when called. | |
#define | throws_any_(...) |
Asserts that the staement does not throw an exception. | |
#define | class_cleanup_(method_name) |
Add class cleanup method to class test. | |
#define | class_initialize_(method_name) |
add initialize class method to class test. | |
#define | all_items_are_instances_of_(type_t, ...) |
Asserts that all collection items are of the type supplied or a derived type. | |
#define | all_items_are_not_null_(...) |
Asserts that all collection items are not null. | |
#define | all_items_are_unique_(...) |
Asserts that all collection items are unique. | |
#define | are_equivalent_(...) |
Asserts that all collection items are equivalent. | |
#define | are_not_equivalent_(...) |
Asserts that all collection items are equivalent. | |
#define | is_ordered_(...) |
Asserts that collection is ordered. | |
#define | exists_(...) |
Asserts that directory exists. | |
#define | does_not_exist_(...) |
Asserts that file not exists. | |
#define | are_equal_ignoring_case_(...) |
Asserts that two type are equal ignoring case. | |
#define | are_not_equal_ignoring_case_(...) |
Asserts that two type are not equal ignoring case. | |
#define | does_not_end_with_(...) |
Asserts that string starts with item. | |
#define | does_not_match_(...) |
Asserts that does not match regex pattern. | |
#define | does_not_start_with_(...) |
Asserts that string starts with item. | |
#define | ends_with_(...) |
Asserts that string starts with item. | |
#define | matches_(...) |
Asserts that matches regex pattern. | |
#define | starts_with_(...) |
Asserts that string starts with item. | |
#define | test_class_(class_name) |
Helper to create a test_class in a test unit. | |
#define | test_class_from_(class_name, from_class_name) |
Helper to create a test_class in a test unit from a specified class base. | |
#define | test_cleanup_(method_name) |
Helper to create a test cleanup method in a test class. | |
#define | test_initialize_(method_name) |
Helper to create a test initialize method in a test class. | |
#define | ignore_test_method_(method_name) |
Add ignored test method to class test. | |
#define | test_method_(method_name) |
Add test method to class test. | |
#define | tunit_main_ |
Defines the entry point to be called with startup_ for unit test application. | |
#define | tunit_main_with_gtest_compatibility_ |
Defines the entry point to be called with startup_ for unit test application with Google test compatibility. | |
Enumerations | |
enum class | xtd::tunit::test_state { xtd::tunit::test_state::considered , xtd::tunit::test_state::ignored } |
Represent the test state enumeration used bu test. More... | |