37 template<
typename expected_t,
typename collection_t>
51 template<
typename expected_t,
typename collection_t>
65 template<
typename expected_t,
typename collection_t>
79 template<
typename expected_t,
typename collection_t>
81 for (
auto item : collection)
82 if (
dynamic_cast<expected_t
>(item) ==
nullptr) {
83 base_assert::fail(
"all items instance of <" + __tunit_demangle(
typeid(expected_t).name()) +
">", base_assert::join_items(collection), message, stack_frame);
90 template<
typename expected_t,
typename item_t>
92 template<
typename expected_t,
typename item_t>
94 template<
typename expected_t,
typename item_t>
96 template<
typename expected_t,
typename item_t>
98 for (
auto item : collection)
99 if (
dynamic_cast<expected_t
>(item) ==
nullptr) {
100 base_assert::fail(
"all items instance of <" + __tunit_demangle(
typeid(expected_t).name()) +
">", base_assert::join_items(collection), message, stack_frame);
120 template<
typename collection_t>
136 template<
typename collection_t>
152 template<
typename collection_t>
168 template<
typename collection_t>
170 for (
auto item : collection)
171 if (item ==
nullptr) {
172 base_assert::fail(
"all items are not null", base_assert::join_items(collection), message, stack_frame);
179 template<
typename item_t>
181 template<
typename item_t>
183 template<
typename item_t>
185 template<
typename item_t>
187 for (
auto item : collection)
188 if (item ==
nullptr) {
189 base_assert::fail(
"all items are not null", base_assert::join_items(collection), message, stack_frame);
208 template<
typename collection_t>
223 template<
typename collection_t>
238 template<
typename collection_t>
253 template<
typename collection_t>
255 auto value = *collection.cbegin();
256 std::map<
decltype(value),
int> counts;
257 for (
auto item : collection) {
258 auto result = counts.insert(std::pair<
decltype(item),
int>(item, 1));
259 if (result.second ==
false)
260 base_assert::fail(
"all items are unique", base_assert::join_items(collection), message, stack_frame);
266 template<
typename item_t>
268 template<
typename item_t>
270 template<
typename item_t>
272 template<
typename item_t>
274 std::map<item_t, int> counts;
275 for (
auto item : collection) {
276 auto result = counts.insert(std::pair<item_t, int>(item, 1));
277 if (result.second ==
false)
278 base_assert::fail(
"all items are unique", base_assert::join_items(collection), message, stack_frame);
295 template<
typename expected_t,
typename actual_t>
309 template<
typename expected_t,
typename actual_t>
323 template<
typename expected_t,
typename actual_t>
337 template<
typename expected_t,
typename actual_t>
339 if (std::equal(actual.begin(), actual.end(), expected.begin(), expected.end()) ==
false)
340 base_assert::fail(base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
346 template<
typename item_t>
348 template<
typename item_t>
350 template<
typename item_t>
352 template<
typename item_t>
353 static void are_equal(
const std::initializer_list<item_t>& expected,
const std::initializer_list<item_t>& actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {
354 if (std::equal(actual.begin(), actual.end(), expected.begin(), expected.end()) ==
false)
355 base_assert::fail(base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
361 template<
typename collection_t,
typename item_t>
363 template<
typename collection_t,
typename item_t>
365 template<
typename collection_t,
typename item_t>
367 template<
typename collection_t,
typename item_t>
369 if (std::equal(actual.begin(), actual.end(), expected.begin(), expected.end()) ==
false)
370 base_assert::fail(base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
376 template<
typename item_t,
typename collection_t>
378 template<
typename item_t,
typename collection_t>
380 template<
typename item_t,
typename collection_t>
382 template<
typename item_t,
typename collection_t>
384 if (std::equal(actual.begin(), actual.end(), expected.begin(), expected.end()) ==
false)
385 base_assert::fail(base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
402 template<
typename expected_t,
typename actual_t>
416 template<
typename expected_t,
typename actual_t>
430 template<
typename expected_t,
typename actual_t>
444 template<
typename expected_t,
typename actual_t>
446 expected_t expect_sorted = expected;
447 std::sort(expect_sorted.begin(), expect_sorted.end());
448 expected_t actual_sorted = actual;
449 std::sort(actual_sorted.begin(), actual_sorted.end());
450 if (std::equal(actual_sorted.begin(), actual_sorted.end(), expect_sorted.begin(), expect_sorted.end()) ==
false)
451 base_assert::fail(
"equivalent " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
457 template<
typename expected_t,
typename actual_t>
459 template<
typename expected_t,
typename actual_t>
461 template<
typename expected_t,
typename actual_t>
463 template<
typename expected_t,
typename actual_t>
465 std::vector<expected_t> expect_sorted = expected;
466 std::sort(expect_sorted.begin(), expect_sorted.end());
467 std::vector<actual_t> actual_sorted = actual;
468 std::sort(actual_sorted.begin(), actual_sorted.end());
469 if (std::equal(actual_sorted.begin(), actual_sorted.end(), expect_sorted.begin(), expect_sorted.end()) ==
false)
470 base_assert::fail(
"equivalent " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
476 template<
typename collection_t,
typename item_t>
478 template<
typename collection_t,
typename item_t>
480 template<
typename collection_t,
typename item_t>
482 template<
typename collection_t,
typename item_t>
484 collection_t expect_sorted = expected;
485 std::sort(expect_sorted.begin(), expect_sorted.end());
486 std::vector<item_t> actual_sorted = actual;
487 std::sort(actual_sorted.begin(), actual_sorted.end());
488 if (std::equal(actual_sorted.begin(), actual_sorted.end(), expect_sorted.begin(), expect_sorted.end()) ==
false)
489 base_assert::fail(
"equivalent " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
495 template<
typename item_t,
typename collection_t>
497 template<
typename item_t,
typename collection_t>
499 template<
typename item_t,
typename collection_t>
501 template<
typename item_t,
typename collection_t>
503 std::vector<item_t> expect_sorted = expected;
504 std::sort(expect_sorted.begin(), expect_sorted.end());
505 collection_t actual_sorted = actual;
506 std::sort(actual_sorted.begin(), actual_sorted.end());
507 if (std::equal(actual_sorted.begin(), actual_sorted.end(), expect_sorted.begin(), expect_sorted.end()) ==
false)
508 base_assert::fail(
"equivalent " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
525 template<
typename expected_t,
typename actual_t>
539 template<
typename expected_t,
typename actual_t>
553 template<
typename expected_t,
typename actual_t>
567 template<
typename expected_t,
typename actual_t>
569 if (std::equal(actual.begin(), actual.end(), expected.begin(), expected.end()) ==
true)
570 base_assert::fail(
"not " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
576 template<
typename item_t>
578 template<
typename item_t>
580 template<
typename item_t>
582 template<
typename item_t>
584 if (std::equal(actual.begin(), actual.end(), expected.begin(), expected.end()) ==
true)
585 base_assert::fail(
"not " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
591 template<
typename collection_t,
typename item_t>
593 template<
typename collection_t,
typename item_t>
595 template<
typename collection_t,
typename item_t>
597 template<
typename collection_t,
typename item_t>
599 if (std::equal(actual.begin(), actual.end(), expected.begin(), expected.end()) ==
true)
600 base_assert::fail(
"not " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
606 template<
typename item_t,
typename collection_t>
608 template<
typename item_t,
typename collection_t>
610 template<
typename item_t,
typename collection_t>
612 template<
typename item_t,
typename collection_t>
614 if (std::equal(actual.begin(), actual.end(), expected.begin(), expected.end()) ==
true)
615 base_assert::fail(
"not " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
632 template<
typename expected_t,
typename actual_t>
646 template<
typename expected_t,
typename actual_t>
660 template<
typename expected_t,
typename actual_t>
674 template<
typename expected_t,
typename actual_t>
676 expected_t expect_sorted = expected;
677 std::sort(expect_sorted.begin(), expect_sorted.end());
678 expected_t actual_sorted = actual;
679 std::sort(actual_sorted.begin(), actual_sorted.end());
680 if (std::equal(actual_sorted.begin(), actual_sorted.end(), expect_sorted.begin(), expect_sorted.end()) ==
true)
681 base_assert::fail(
"not equivalent " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
687 template<
typename expected_t,
typename actual_t>
689 template<
typename expected_t,
typename actual_t>
691 template<
typename expected_t,
typename actual_t>
693 template<
typename expected_t,
typename actual_t>
695 std::vector<expected_t> expect_sorted = expected;
696 std::sort(expect_sorted.begin(), expect_sorted.end());
697 std::vector<actual_t> actual_sorted = actual;
698 std::sort(actual_sorted.begin(), actual_sorted.end());
699 if (std::equal(actual_sorted.begin(), actual_sorted.end(), expect_sorted.begin(), expect_sorted.end()) ==
true)
700 base_assert::fail(
"not equivalent " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
706 template<
typename collection_t,
typename item_t>
708 template<
typename collection_t,
typename item_t>
710 template<
typename collection_t,
typename item_t>
712 template<
typename collection_t,
typename item_t>
714 collection_t expect_sorted = expected;
715 std::sort(expect_sorted.begin(), expect_sorted.end());
716 std::vector<item_t> actual_sorted = actual;
717 std::sort(actual_sorted.begin(), actual_sorted.end());
718 if (std::equal(actual_sorted.begin(), actual_sorted.end(), expect_sorted.begin(), expect_sorted.end()) ==
true)
719 base_assert::fail(
"not equivalent " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
725 template<
typename item_t,
typename collection_t>
727 template<
typename item_t,
typename collection_t>
729 template<
typename item_t,
typename collection_t>
731 template<
typename item_t,
typename collection_t>
733 std::vector<item_t> expect_sorted = expected;
734 std::sort(expect_sorted.begin(), expect_sorted.end());
735 collection_t actual_sorted = actual;
736 std::sort(actual_sorted.begin(), actual_sorted.end());
737 if (std::equal(actual_sorted.begin(), actual_sorted.end(), expect_sorted.begin(), expect_sorted.end()) ==
true)
738 base_assert::fail(
"not equivalent " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
755 template<
typename expected_t,
typename actual_t>
769 template<
typename expected_t,
typename actual_t>
783 template<
typename expected_t,
typename actual_t>
797 template<
typename expected_t,
typename actual_t>
799 for (
auto item : expected) {
800 if (std::find(actual.begin(), actual.end(), item) == actual.end()) {
801 base_assert::fail(
"contains " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
809 template<
typename item_t>
811 template<
typename item_t>
813 template<
typename item_t>
815 template<
typename item_t>
816 static void contains(
const std::initializer_list<item_t>& expected,
const std::initializer_list<item_t>& actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {
817 for (
auto item : expected) {
818 if (std::find(actual.begin(), actual.end(), item) == actual.end()) {
819 base_assert::fail(
"contains " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
827 template<
typename collection_t,
typename item_t>
829 template<
typename collection_t,
typename item_t>
831 template<
typename collection_t,
typename item_t>
833 template<
typename collection_t,
typename item_t>
835 for (
auto item : expected) {
836 if (std::find(actual.begin(), actual.end(), item) == actual.end()) {
837 base_assert::fail(
"contains " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
845 template<
typename item_t,
typename collection_t>
847 template<
typename item_t,
typename collection_t>
849 template<
typename item_t,
typename collection_t>
851 template<
typename item_t,
typename collection_t>
853 for (
auto item : expected) {
854 if (std::find(actual.begin(), actual.end(), item) == actual.end()) {
855 base_assert::fail(
"contains " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
874 template<
typename expected_t,
typename actual_t>
888 template<
typename expected_t,
typename actual_t>
902 template<
typename expected_t,
typename actual_t>
916 template<
typename expected_t,
typename actual_t>
918 for (
auto item : expected) {
919 if (std::find(actual.begin(), actual.end(), item) == actual.end()) {
924 base_assert::fail(
"not contains " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
928 template<
typename item_t>
930 template<
typename item_t>
932 template<
typename item_t>
934 template<
typename item_t>
936 for (
auto item : expected) {
937 if (std::find(actual.begin(), actual.end(), item) == actual.end()) {
942 base_assert::fail(
"not contains " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
946 template<
typename collection_t,
typename item_t>
948 template<
typename collection_t,
typename item_t>
950 template<
typename collection_t,
typename item_t>
952 template<
typename collection_t,
typename item_t>
954 for (
auto item : expected) {
955 if (std::find(actual.begin(), actual.end(), item) == actual.end()) {
960 base_assert::fail(
"not contains " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
964 template<
typename item_t,
typename collection_t>
966 template<
typename item_t,
typename collection_t>
968 template<
typename item_t,
typename collection_t>
970 template<
typename item_t,
typename collection_t>
972 for (
auto item : expected) {
973 if (std::find(actual.begin(), actual.end(), item) == actual.end()) {
978 base_assert::fail(
"not contains " + base_assert::join_items(expected), base_assert::join_items(actual), message, stack_frame);
992 template<
typename value_t>
1006 template<
typename value_t>
1020 template<
typename value_t>
1035 template<
typename value_t>
1037 if (std::empty(value))
1040 base_assert::fail(
"<empty>", base_assert::join_items(value), message, stack_frame);
1044 template<
typename value_t>
1046 template<
typename value_t>
1048 template<
typename value_t>
1050 template<
typename value_t>
1052 if (std::empty(value))
1055 base_assert::fail(
"<empty>", base_assert::join_items(value), message, stack_frame);
1069 template<
typename value_t>
1083 template<
typename value_t>
1097 template<
typename value_t>
1112 template<
typename value_t>
1114 if (!std::empty(value))
1121 template<
typename value_t>
1123 template<
typename value_t>
1125 template<
typename value_t>
1127 template<
typename value_t>
1129 if (!std::empty(value))
1146 template<
typename value_t>
1160 template<
typename value_t>
1174 template<
typename value_t>
1189 template<
typename value_t>
1191 if (std::is_sorted(value.begin(), value.end()))
1194 base_assert::fail(
"<ordered>", base_assert::join_items(value), message, stack_frame);
1198 template<
typename value_t>
1200 template<
typename value_t>
1202 template<
typename value_t>
1204 template<
typename value_t>
1206 if (std::is_sorted(value.begin(), value.end()))
1209 base_assert::fail(
"<ordered>", base_assert::join_items(value), message, stack_frame);
1216#define all_items_are_instances_of_(...) __CMD_ASSERT_ARGS(all_items_are_instances_of, __VA_ARGS__)
1218#define all_items_are_not_null_(...) __CMD_ASSERT_ARGS(all_items_are_not_null, __VA_ARGS__)
1220#define all_items_are_unique_(...) __CMD_ASSERT_ARGS(all_items_are_unique, __VA_ARGS__)
1222#define are_equivalent_(...) __CMD_ASSERT_ARGS(are_equivalent, __VA_ARGS__)
1224#define are_not_equivalent_(...) __CMD_ASSERT_ARGS(are_not_equivalent, __VA_ARGS__)
1226#define is_ordered_(...) __CMD_ASSERT_ARGS(is_ordered, __VA_ARGS__)
Contains xtd::tunit::assert class.
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:29
static stack_frame empty() noexcept
Return an empty stack frame.
The base class for assert.
Definition: base_assert.h:25
static void fail()
Throws an xtd::tunit::assertion_error exception. This is used by the other Assert functions.
Definition: base_assert.h:70
static void succeed()
Generates a success with a generic message. This is used by the other Assert functions.
Definition: base_assert.h:140
The collection_assert class contains a collection of static methods that implement the most collectio...
Definition: collection_assert.h:20
static void is_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection contains an item.
Definition: collection_assert.h:1007
static void all_items_are_not_null(const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are not null.
Definition: collection_assert.h:153
static void are_not_equivalent(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are not equivalent.
Definition: collection_assert.h:675
static void all_items_are_unique(const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are unique.
Definition: collection_assert.h:254
static void does_not_contain(const expected_t &expected, const actual_t &actual)
Asserts that collection contains all items.
Definition: collection_assert.h:875
static void are_not_equivalent(const expected_t &expected, const actual_t &actual, const std::string &message)
Asserts that all collection items are not equivalent.
Definition: collection_assert.h:647
static void are_equal(const expected_t &expected, const actual_t &actual)
Asserts that all collection items are equal.
Definition: collection_assert.h:296
static void are_not_equivalent(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are not equivalent.
Definition: collection_assert.h:661
static void all_items_are_instances_of(const collection_t &collection, const std::string &message)
Asserts that all collection items are of the type supplied or a derived type.
Definition: collection_assert.h:52
static void is_ordered(const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection is ordered.
Definition: collection_assert.h:1190
static void all_items_are_unique(const collection_t &collection, const std::string &message)
Asserts that all collection items are unique.
Definition: collection_assert.h:224
static void are_equivalent(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are equivalent.
Definition: collection_assert.h:431
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are not equal.
Definition: collection_assert.h:554
static void is_not_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection or traits does not contain any item.
Definition: collection_assert.h:1084
static void contains(const expected_t &expected, const actual_t &actual, const std::string &message)
Asserts that collection contains all items.
Definition: collection_assert.h:770
static void is_ordered(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection is ordered.
Definition: collection_assert.h:1161
static void are_equal(const expected_t &expected, const actual_t &actual, const std::string &message)
Asserts that all collection items are equal.
Definition: collection_assert.h:310
static void is_not_empty(const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection or traits does not contain any item.
Definition: collection_assert.h:1113
static void is_not_empty(const value_t &value, const std::string &message)
Asserts that collection or traits does not contain any item.
Definition: collection_assert.h:1098
static void are_equivalent(const expected_t &expected, const actual_t &actual)
Asserts that all collection items are equivalent.
Definition: collection_assert.h:403
static void are_equivalent(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are equivalent.
Definition: collection_assert.h:445
static void does_not_contain(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection contains all items.
Definition: collection_assert.h:903
static void is_ordered(const value_t &value)
Asserts that collection is ordered.
Definition: collection_assert.h:1147
static void are_equal(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are equal.
Definition: collection_assert.h:338
static void all_items_are_unique(const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are unique.
Definition: collection_assert.h:239
static void are_equivalent(const expected_t &expected, const actual_t &actual, const std::string &message)
Asserts that all collection items are equivalent.
Definition: collection_assert.h:417
static void are_not_equivalent(const expected_t &expected, const actual_t &actual)
Asserts that all collection items are not equivalent.
Definition: collection_assert.h:633
static void all_items_are_unique(const collection_t &collection)
Asserts that all collection items are unique.
Definition: collection_assert.h:209
static void contains(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection contains all items.
Definition: collection_assert.h:784
static void are_not_equal(const expected_t &expected, const actual_t &actual)
Asserts that all collection items are not equal.
Definition: collection_assert.h:526
static void is_empty(const value_t &value, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection contains an item.
Definition: collection_assert.h:1036
static void all_items_are_not_null(const collection_t &collection, const std::string &message)
Asserts that all collection items are not null.
Definition: collection_assert.h:137
static void is_empty(const value_t &value)
Asserts that collection contains an item.
Definition: collection_assert.h:993
static void all_items_are_instances_of(const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are of the type supplied or a derived type.
Definition: collection_assert.h:80
static void all_items_are_instances_of(const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are of the type supplied or a derived type.
Definition: collection_assert.h:66
static void are_not_equal(const expected_t &expected, const actual_t &actual, const std::string &message)
Asserts that all collection items are not equal.
Definition: collection_assert.h:540
static void contains(const expected_t &expected, const actual_t &actual)
Asserts that collection contains all items.
Definition: collection_assert.h:756
static void contains(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection contains all items.
Definition: collection_assert.h:798
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are equal.
Definition: collection_assert.h:324
static void is_ordered(const value_t &value, const std::string &message)
Asserts that collection is ordered.
Definition: collection_assert.h:1175
static void all_items_are_instances_of(const collection_t &collection)
Asserts that all collection items are of the type supplied or a derived type.
Definition: collection_assert.h:38
static void all_items_are_not_null(const collection_t &collection, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are not null.
Definition: collection_assert.h:169
static void is_not_empty(const value_t &value)
Asserts that collection does not contain any item.
Definition: collection_assert.h:1070
static void does_not_contain(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that collection contains all items.
Definition: collection_assert.h:917
static void all_items_are_not_null(const collection_t &collection)
Asserts that all collection items are not null.
Definition: collection_assert.h:121
static void does_not_contain(const expected_t &expected, const actual_t &actual, const std::string &message)
Asserts that collection contains all items.
Definition: collection_assert.h:889
static void are_not_equal(const expected_t &expected, const actual_t &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that all collection items are not equal.
Definition: collection_assert.h:568
static void is_empty(const value_t &value, const std::string &message)
Asserts that collection contains an item.
Definition: collection_assert.h:1021
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17