42 template<
typename expected_t,
typename collection_t>
54 template<
typename expected_t,
typename collection_t>
57 collection_assert::all_items_are_instances_of<expected_t>(collection, message, stack_frame);
64 template<
typename expected_t,
typename item_t>
66 template<
typename expected_t,
typename item_t>
69 collection_assert::all_items_are_instances_of<expected_t>(collection, message, stack_frame);
88 template<
typename collection_t>
102 template<
typename collection_t>
105 collection_assert::all_items_are_not_null(collection, message, stack_frame);
112 template<
typename item_t>
114 template<
typename item_t>
117 collection_assert::all_items_are_not_null(collection, message, stack_frame);
135 template<
typename collection_t>
148 template<
typename collection_t>
151 collection_assert::all_items_are_unique(collection, message, stack_frame);
158 template<
typename item_t>
160 template<
typename item_t>
163 collection_assert::all_items_are_unique(collection, message, stack_frame);
180 template<
typename expected_t,
typename actual_t>
192 template<
typename expected_t,
typename actual_t>
195 collection_assert::are_equal(expected, actual, message, stack_frame);
202 template<
typename item_t>
204 template<
typename item_t>
207 collection_assert::are_equal(expected, actual, message, stack_frame);
212 template<
typename collection_t,
typename item_t>
214 template<
typename collection_t,
typename item_t>
217 collection_assert::are_equal(expected, actual, message, stack_frame);
222 template<
typename item_t,
typename collection_t>
224 template<
typename item_t,
typename collection_t>
227 collection_assert::are_equal(expected, actual, message, stack_frame);
244 template<
typename expected_t,
typename actual_t>
256 template<
typename expected_t,
typename actual_t>
259 collection_assert::are_equivalent(expected, actual, message, stack_frame);
266 template<
typename expected_t,
typename actual_t>
268 template<
typename expected_t,
typename actual_t>
271 collection_assert::are_equivalent(expected, actual, message, stack_frame);
276 template<
typename collection_t,
typename item_t>
278 template<
typename collection_t,
typename item_t>
281 collection_assert::are_equivalent(expected, actual, message, stack_frame);
286 template<
typename item_t,
typename collection_t>
288 template<
typename item_t,
typename collection_t>
291 collection_assert::are_equivalent(expected, actual, message, stack_frame);
308 template<
typename expected_t,
typename actual_t>
320 template<
typename expected_t,
typename actual_t>
323 collection_assert::are_not_equal(expected, actual, message, stack_frame);
330 template<
typename item_t>
332 template<
typename item_t>
335 collection_assert::are_not_equal(expected, actual, message, stack_frame);
340 template<
typename collection_t,
typename item_t>
342 template<
typename collection_t,
typename item_t>
345 collection_assert::are_not_equal(expected, actual, message, stack_frame);
350 template<
typename item_t,
typename collection_t>
352 template<
typename item_t,
typename collection_t>
355 collection_assert::are_not_equal(expected, actual, message, stack_frame);
372 template<
typename expected_t,
typename actual_t>
384 template<
typename expected_t,
typename actual_t>
387 collection_assert::are_not_equivalent(expected, actual, message, stack_frame);
394 template<
typename expected_t,
typename actual_t>
396 template<
typename expected_t,
typename actual_t>
399 collection_assert::are_not_equivalent(expected, actual, message, stack_frame);
404 template<
typename collection_t,
typename item_t>
406 template<
typename collection_t,
typename item_t>
409 collection_assert::are_not_equivalent(expected, actual, message, stack_frame);
414 template<
typename item_t,
typename collection_t>
416 template<
typename item_t,
typename collection_t>
419 collection_assert::are_not_equivalent(expected, actual, message, stack_frame);
436 template<
typename expected_t,
typename actual_t>
448 template<
typename expected_t,
typename actual_t>
451 collection_assert::contains(expected, actual, message, stack_frame);
458 template<
typename item_t>
460 template<
typename item_t>
463 collection_assert::contains(expected, actual, message, stack_frame);
468 template<
typename collection_t,
typename item_t>
470 template<
typename collection_t,
typename item_t>
473 collection_assert::contains(expected, actual, message, stack_frame);
478 template<
typename item_t,
typename collection_t>
480 template<
typename item_t,
typename collection_t>
483 collection_assert::contains(expected, actual, message, stack_frame);
500 template<
typename expected_t,
typename actual_t>
512 template<
typename expected_t,
typename actual_t>
515 collection_assert::does_not_contain(expected, actual, message, stack_frame);
522 template<
typename item_t>
524 template<
typename item_t>
527 collection_assert::does_not_contain(expected, actual, message, stack_frame);
532 template<
typename collection_t,
typename item_t>
534 template<
typename collection_t,
typename item_t>
537 collection_assert::does_not_contain(expected, actual, message, stack_frame);
542 template<
typename item_t,
typename collection_t>
544 template<
typename item_t,
typename collection_t>
547 collection_assert::does_not_contain(expected, actual, message, stack_frame);
564 template<
typename value_t>
577 template<
typename value_t>
580 collection_assert::is_empty(value, message, stack_frame);
587 template<
typename value_t>
589 template<
typename value_t>
592 collection_assert::is_empty(value, message, stack_frame);
609 template<
typename value_t>
622 template<
typename value_t>
625 collection_assert::is_not_empty(value, message, stack_frame);
632 template<
typename value_t>
634 template<
typename value_t>
637 collection_assert::is_not_empty(value, message, stack_frame);
654 template<
typename value_t>
667 template<
typename value_t>
670 collection_assert::is_ordered(value, message, stack_frame);
677 template<
typename value_t>
679 template<
typename value_t>
682 collection_assert::is_ordered(value, message, stack_frame);
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.h:124
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:47
static stack_frame current(const xtd::source_location &value=xtd::source_location::current()) noexcept
Crates a new xtd::diagnostics::stack_frame object corresponding to the location of the call site.
The base class for assert.
Definition base_assert.h:29
The collection_valid class contains a collection of static methods that implement the most collection...
Definition collection_valid.h:23
static void are_not_equivalent(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are not equivalent.
Definition collection_valid.h:373
static void does_not_contain(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection contains all items.
Definition collection_valid.h:513
static void is_ordered(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection is ordered.
Definition collection_valid.h:655
static void all_items_are_not_null(const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are not null.
Definition collection_valid.h:89
static void is_not_empty(const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection or traits does not contain any item.
Definition collection_valid.h:623
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are equal.
Definition collection_valid.h:181
static void all_items_are_instances_of(const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are of the type supplied or a derived type.
Definition collection_valid.h:55
static void does_not_contain(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection contains all items.
Definition collection_valid.h:501
static void is_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection contains an item.
Definition collection_valid.h:565
static void all_items_are_unique(const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are unique.
Definition collection_valid.h:149
static void are_equivalent(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are equivalent.
Definition collection_valid.h:257
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are not equal.
Definition collection_valid.h:309
static void are_not_equal(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are not equal.
Definition collection_valid.h:321
static void all_items_are_not_null(const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are not null.
Definition collection_valid.h:103
static void are_not_equivalent(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are not equivalent.
Definition collection_valid.h:385
static void are_equivalent(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are equivalent.
Definition collection_valid.h:245
static void is_ordered(const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection is ordered.
Definition collection_valid.h:668
static void is_empty(const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection contains an item.
Definition collection_valid.h:578
static void are_equal(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are equal.
Definition collection_valid.h:193
static void contains(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection contains all items.
Definition collection_valid.h:449
static void contains(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection contains all items.
Definition collection_valid.h:437
static void all_items_are_instances_of(const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are of the type supplied or a derived type.
Definition collection_valid.h:43
static void is_not_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that collection or traits does not contain any item.
Definition collection_valid.h:610
static void all_items_are_unique(const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validates that all collection items are unique.
Definition collection_valid.h:136
Contains xtd::tunit::collection_assert class.
#define tunit_export_
Define shared library export.
Definition tunit_export.h:13
@ error
Allows critical and error events through.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::tunit::valid class.