xtd - Reference Guide
0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <collection_valid.h>
The collection_valid class contains a collection of static methods that implement the most collection assertions used in xtd::tUnit.
Inherits xtd::tunit::base_assert.
Static Public Member Functions | |
template<typename expected_t , typename collection_t > | |
static void | all_items_are_instances_of (const collection_t &collection) |
Validates that all collection items are of the type supplied or a derived type. | |
template<typename expected_t , typename collection_t > | |
static void | all_items_are_instances_of (const collection_t &collection, const std::string &message) |
Validates that all collection items are of the type supplied or a derived type. | |
template<typename expected_t , typename collection_t > | |
static void | all_items_are_instances_of (const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are of the type supplied or a derived type. | |
template<typename expected_t , typename collection_t > | |
static void | all_items_are_instances_of (const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are of the type supplied or a derived type. | |
template<typename collection_t > | |
static void | all_items_are_not_null (const collection_t &collection) |
Validates that all collection items are not null. | |
template<typename collection_t > | |
static void | all_items_are_not_null (const collection_t &collection, const std::string &message) |
Validates that all collection items are not null. | |
template<typename collection_t > | |
static void | all_items_are_not_null (const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are not null. | |
template<typename collection_t > | |
static void | all_items_are_not_null (const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are not null. | |
template<typename collection_t > | |
static void | all_items_are_unique (const collection_t &collection) |
Validates that all collection items are unique. | |
template<typename collection_t > | |
static void | all_items_are_unique (const collection_t &collection, const std::string &message) |
Validates that all collection items are unique. | |
template<typename collection_t > | |
static void | all_items_are_unique (const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are unique. | |
template<typename collection_t > | |
static void | all_items_are_unique (const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are unique. | |
template<typename expected_t , typename actual_t > | |
static void | are_equal (const expected_t &expected, const actual_t &actual) |
Validates that all collection items are equal. | |
template<typename expected_t , typename actual_t > | |
static void | are_equal (const expected_t &expected, const actual_t &actual, const std::string &message) |
Validates that all collection items are equal. | |
template<typename expected_t , typename actual_t > | |
static void | are_equal (const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are equal. | |
template<typename expected_t , typename actual_t > | |
static void | are_equal (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are equal. | |
template<typename expected_t , typename actual_t > | |
static void | are_equivalent (const expected_t &expected, const actual_t &actual) |
Validates that all collection items are equivalent. | |
template<typename expected_t , typename actual_t > | |
static void | are_equivalent (const expected_t &expected, const actual_t &actual, const std::string &message) |
Validates that all collection items are equivalent. | |
template<typename expected_t , typename actual_t > | |
static void | are_equivalent (const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are equivalent. | |
template<typename expected_t , typename actual_t > | |
static void | are_equivalent (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are equivalent. | |
template<typename expected_t , typename actual_t > | |
static void | are_not_equal (const expected_t &expected, const actual_t &actual) |
Validates that all collection items are not equal. | |
template<typename expected_t , typename actual_t > | |
static void | are_not_equal (const expected_t &expected, const actual_t &actual, const std::string &message) |
Validates that all collection items are not equal. | |
template<typename expected_t , typename actual_t > | |
static void | are_not_equal (const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are not equal. | |
template<typename expected_t , typename actual_t > | |
static void | are_not_equal (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are not equal. | |
template<typename expected_t , typename actual_t > | |
static void | are_not_equivalent (const expected_t &expected, const actual_t &actual) |
Validates that all collection items are not equivalent. | |
template<typename expected_t , typename actual_t > | |
static void | are_not_equivalent (const expected_t &expected, const actual_t &actual, const std::string &message) |
Validates that all collection items are not equivalent. | |
template<typename expected_t , typename actual_t > | |
static void | are_not_equivalent (const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are not equivalent. | |
template<typename expected_t , typename actual_t > | |
static void | are_not_equivalent (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that all collection items are not equivalent. | |
template<typename expected_t , typename actual_t > | |
static void | contains (const expected_t &expected, const actual_t &actual) |
Validates that collection contains all items. | |
template<typename expected_t , typename actual_t > | |
static void | contains (const expected_t &expected, const actual_t &actual, const std::string &message) |
Validates that collection contains all items. | |
template<typename expected_t , typename actual_t > | |
static void | contains (const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection contains all items. | |
template<typename expected_t , typename actual_t > | |
static void | contains (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection contains all items. | |
template<typename expected_t , typename actual_t > | |
static void | does_not_contain (const expected_t &expected, const actual_t &actual) |
Validates that collection contains all items. | |
template<typename expected_t , typename actual_t > | |
static void | does_not_contain (const expected_t &expected, const actual_t &actual, const std::string &message) |
Validates that collection contains all items. | |
template<typename expected_t , typename actual_t > | |
static void | does_not_contain (const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection contains all items. | |
template<typename expected_t , typename actual_t > | |
static void | does_not_contain (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection contains all items. | |
template<typename value_t > | |
static void | is_empty (const value_t &value) |
Validates that collection contains an item. | |
template<typename value_t > | |
static void | is_empty (const value_t &value, const std::string &message) |
Validates that collection contains an item. | |
template<typename value_t > | |
static void | is_empty (const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection contains an item. | |
template<typename value_t > | |
static void | is_empty (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection contains an item. | |
template<typename value_t > | |
static void | is_not_empty (const value_t &value) |
Validates that collection does not contain any item. | |
template<typename value_t > | |
static void | is_not_empty (const value_t &value, const std::string &message) |
Validates that collection or traits does not contain any item. | |
template<typename value_t > | |
static void | is_not_empty (const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection or traits does not contain any item. | |
template<typename value_t > | |
static void | is_not_empty (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection or traits does not contain any item. | |
template<typename value_t > | |
static void | is_ordered (const value_t &value) |
Validates that collection is ordered. | |
template<typename value_t > | |
static void | is_ordered (const value_t &value, const std::string &message) |
Validates that collection is ordered. | |
template<typename value_t > | |
static void | is_ordered (const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection is ordered. | |
template<typename value_t > | |
static void | is_ordered (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that collection is ordered. | |
|
inlinestatic |
Validates that all collection items are of the type supplied or a derived type.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are of the type supplied or a derived type.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are of the type supplied or a derived type.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are of the type supplied or a derived type.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not null.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not null.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not null.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not null.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are unique.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are unique.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are unique.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are unique.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are equal.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are equal.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are equal.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are equal.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are equivalent.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are equivalent.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are equivalent.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are equivalent.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not equal.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not equal.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not equal.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not equal.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not equivalent.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not equivalent.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not equivalent.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that all collection items are not equivalent.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains all items.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains all items.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains all items.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains all items.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains all items.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains all items.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains all items.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains all items.
value | The object to verify |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains an item.
value | The value to check is empty. |
|
inlinestatic |
Validates that collection contains an item.
value | The value to check is empty. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
|
inlinestatic |
Validates that collection contains an item.
value | The value to check is empty. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection contains an item.
value | The value to check is empty. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection does not contain any item.
value | The value to check is empty. |
|
inlinestatic |
Validates that collection or traits does not contain any item.
value | The value to check is empty. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
|
inlinestatic |
Validates that collection or traits does not contain any item.
value | The value to check is empty. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection or traits does not contain any item.
value | The value to check is empty. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection is ordered.
value | The value to check is empty. |
|
inlinestatic |
Validates that collection is ordered.
value | The value to check is empty. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
|
inlinestatic |
Validates that collection is ordered.
value | The value to check is empty. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Validates that collection is ordered.
value | The value to check is empty. |
stack_frame | Contains information about current file and current line. |