49 template<
class expected_t,
class actual_t>
62 template<
class expected_t,
class actual_t>
64 if (equals(expected, actual)) succeed(message, stack_frame);
70#if defined(__xtd__cpp_lib_char8_t)
172 template<
class expected_t,
class actual_t>
185 template<
class expected_t,
class actual_t>
187 if (!equals(expected, actual)) succeed(message, stack_frame);
193#if defined(__xtd__cpp_lib_char8_t)
214 template<
class expected_t,
class actual_t>
230 template<
class expected_t,
class actual_t>
232 if (!equals(&expected, &actual)) succeed(message, stack_frame);
233 else fail(
"not same as " +
to_string(expected),
to_string(actual), message, stack_frame);
249 template<
class expected_t,
class actual_t>
265 template<
class expected_t,
class actual_t>
267 if (equals(&expected, &actual)) succeed(message, stack_frame);
282 template<
class item_t,
class collection_t>
296 template<
class item_t,
class collection_t>
298 auto result = std::find(collection.begin(), collection.end(), item);
299 if (result != collection.end()) succeed(message, stack_frame);
300 else fail(
"collection containing " +
to_string(item), join_items(collection), message, stack_frame);
304 template<
class item_t,
class value_t>
306 template<
class item_t,
class value_t>
308 auto result = std::find(values.begin(), values.end(), item);
309 if (result != values.end()) succeed(message, stack_frame);
310 else fail(
"collection containing " +
to_string(item), join_items(values), message, stack_frame);
313#if defined(__xtd__cpp_lib_char8_t)
356 template<
class value_t>
370 template<
class value_t>
372 if (std::empty(value)) succeed(message, stack_frame);
373 else fail(
"collection <empty>", join_items(value), message, stack_frame);
377 template<
class value_t>
379 template<
class value_t>
381 if (std::empty(values)) succeed(message, stack_frame);
382 else fail(
"collection <empty>", join_items(values), message, stack_frame);
385#if defined(__xtd__cpp_lib_char8_t)
429 template<
class value1_t,
class value2_t>
442 template<
class value1_t,
class value2_t>
444 if (val1 > val2) succeed(message, stack_frame);
450#if defined(__xtd__cpp_lib_char8_t)
469 template<
class value1_t,
class value2_t>
483 template<
class value1_t,
class value2_t>
485 if (val1 >= val2) succeed(message, stack_frame);
486 else fail(
"greater than or equal to " +
to_string(val2),
to_string(val1), message, stack_frame);
491#if defined(__xtd__cpp_lib_char8_t)
509 template<
class type_t,
class value_t>
522 template<
class type_t,
class value_t>
524 const type_t* instance =
dynamic_cast<const type_t*
>(&value);
525 if (instance !=
nullptr) succeed(message, stack_frame);
526 else fail(
"instance of <" + typeof_<type_t>().full_name() +
">",
"<" +
typeof_(value).full_name() +
">", message, stack_frame);
539 template<
class value1_t,
class value2_t>
552 template<
class value1_t,
class value2_t>
554 if (val1 < val2) succeed(message, stack_frame);
560#if defined(__xtd__cpp_lib_char8_t)
579 template<
class value1_t,
class value2_t>
593 template<
class value1_t,
class value2_t>
595 if (val1 <= val2) succeed(message, stack_frame);
596 else fail(
"less than or equal to " +
to_string(val2),
to_string(val1), message, stack_frame);
601#if defined(__xtd__cpp_lib_char8_t)
696 template<
class value_t>
710 template<
class value_t>
712 if (value < 0) succeed(message, stack_frame);
713 else fail(
"negative",
to_string(value), message, stack_frame);
727 template<
class value_t>
741 template<
class value_t>
743 if (!std::empty(value)) succeed(message, stack_frame);
744 else fail(
"collection not <empty>",
"<empty>", message, stack_frame);
748 template<
class value_t>
750 template<
class value_t>
752 if (!std::empty(values)) succeed(message, stack_frame);
753 else fail(
"collection not <empty>",
"<empty>", message, stack_frame);
756#if defined(__xtd__cpp_lib_char8_t)
774 template<
class type_t,
class value_t>
787 template<
class type_t,
class value_t>
789 const type_t* instance =
dynamic_cast<const type_t*
>(&value);
790 if (instance ==
nullptr) succeed(message, stack_frame);
791 else fail(
"not instance of <" + typeof_<type_t>().full_name() +
">",
"<" +
typeof_(value).full_name() +
">", message, stack_frame);
806 template<
class po
inter_t>
821 template<
class po
inter_t>
823 if (pointer !=
nullptr) succeed(message, stack_frame);
824 else fail(
"not null",
"null", message, stack_frame);
837 template<
class optional_t>
851 template<
class optional_t>
853 if (opt != std::nullopt) succeed(message, stack_frame);
854 else fail(
"not null",
"null", message, stack_frame);
867 template<
class po
inter_t>
881 template<
class po
inter_t>
883 if (pointer !=
nullptr) succeed(message, stack_frame);
884 else fail(
"not null",
"null", message, stack_frame);
897 template<
class po
inter_t>
911 template<
class po
inter_t>
913 if (pointer !=
nullptr) succeed(message, stack_frame);
914 else fail(
"not null",
"null", message, stack_frame);
927 template<
class po
inter_t>
941 template<
class po
inter_t>
944 else fail(
"not null",
"null", message, stack_frame);
979 template<
class value_t>
993 template<
class value_t>
995 if (value !=
static_cast<value_t
>(0)) succeed(message, stack_frame);
996 else fail(
"not zero",
"0", message, stack_frame);
1011 template<
class po
inter_t>
1026 template<
class po
inter_t>
1028 if (pointer ==
nullptr) succeed(message, stack_frame);
1029 else fail(
"null",
"not null", message, stack_frame);
1042 template<
class optional_t>
1056 template<
class optional_t>
1058 if (opt == std::nullopt) succeed(message, stack_frame);
1059 else fail(
"null",
"not null", message, stack_frame);
1072 template<
class po
inter_t>
1086 template<
class po
inter_t>
1088 if (pointer ==
nullptr) succeed(message, stack_frame);
1089 else fail(
"null",
"not null", message, stack_frame);
1102 template<
class po
inter_t>
1116 template<
class po
inter_t>
1118 if (pointer ==
nullptr) succeed(message, stack_frame);
1119 else fail(
"null",
"not null", message, stack_frame);
1133 template<
class po
inter_t>
1148 template<
class po
inter_t>
1151 else fail(
"null",
"not null", message, stack_frame);
1186 template<
class value_t>
1200 template<
class value_t>
1202 if (value > 0) succeed(message, stack_frame);
1203 else fail(
"positive",
to_string(value), message, stack_frame);
1243 template<
class value_t>
1257 template<
class value_t>
1259 if (value ==
static_cast<value_t
>(0)) succeed(message, stack_frame);
1260 else fail(
"zero",
to_string(value), message, stack_frame);
1274 template<
class exception_t>
1288 template<
class exception_t>
1292 fail(
"<" + typeof_<exception_t>().full_name() +
">",
"<nothing>", message, stack_frame);
1293 }
catch (
const exception_t&) {
1294 succeed(message, stack_frame);
1297 }
catch (
const std::exception&
e) {
1298 fail(
"<" + typeof_<exception_t>().full_name() +
">",
"<" +
typeof_(
e).full_name() +
">", message, stack_frame);
1300 fail(
"<" + typeof_<exception_t>().full_name() +
">",
"<exception>", message, stack_frame);
Contains xtd::tunit::assert class.
Represents text as a sequence of character units.
Definition basic_string.hpp:71
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.hpp:116
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.hpp:48
static stack_frame current(const xtd::diagnostics::source_location &value=xtd::diagnostics::source_location::current()) noexcept
Crates a new xtd::diagnostics::stack_frame object corresponding to the location of the call site.
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
Exception thow when an assertion failed.
Definition assert_error.hpp:17
The assert class contains a collection of static methods that implement the most common assertions us...
Definition assert.hpp:30
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are equal.
Definition assert.hpp:63
static void is_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that collection contains an item.
Definition assert.hpp:357
static void are_equal(float expected, float actual, float tolerance, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are equal.
static void is_zero(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that ta condition is zero.
Definition assert.hpp:1258
static void is_not_instance_of(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that an object is not of the type supplied or a derived type.
Definition assert.hpp:775
static void is_not_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
static void is_negative(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that ta condition is negative.
Definition assert.hpp:711
static void is_null(const pointer_t *pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
Definition assert.hpp:1027
static void is_NaN(float value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that a value is NaN.
static void are_not_same(const expected_t &expected, const actual_t &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two objects do refer to differents objects.
Definition assert.hpp:231
static void is_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that ta condition is zero.
Definition assert.hpp:1244
static void is_not_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that collection does not contain any item.
Definition assert.hpp:728
static void are_equal(float expected, float actual, float tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are equal.
static void is_null(const xtd::uptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
Definition assert.hpp:1087
static void is_not_null(const xtd::uptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
Definition assert.hpp:868
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the first value is greater than the second value.
Definition assert.hpp:430
static void is_not_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
Definition assert.hpp:807
static void is_null(const xtd::wptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
Definition assert.hpp:1149
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are equal.
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two objects do refer to differents objects.
Definition assert.hpp:266
static void is_NaN(long double value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that a value is NaN.
static void is_not_null(const xtd::wptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
Definition assert.hpp:928
static void is_null(const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the optional is std::nullopt.
Definition assert.hpp:1043
static void is_less_or_equal(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the first value is is_less than or equal to the second value.
Definition assert.hpp:580
static void is_less_or_equal(const value1_t &val1, const value2_t &val2, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the first value is is_less than or equal to the second value.
Definition assert.hpp:594
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are equal.
static void is_not_null(const xtd::wptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
Definition assert.hpp:942
static void is_NaN(double value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
that a value is NaN.
static void is_positive(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that ta condition is positive.
Definition assert.hpp:1201
static void are_equal(double expected, double actual, double tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are equal.
static void throws_any(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the staement does not throw an exception.
static void is_not_null(const xtd::uptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
Definition assert.hpp:882
static void is_instance_of(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that an object is of the type supplied or a derived type.
Definition assert.hpp:510
static void is_not_instance_of(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that an object is not of the type supplied or a derived type.
Definition assert.hpp:788
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the first value is greater than or equal to the second value.
Definition assert.hpp:484
static void throws_any(const std::function< void()> &statement, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the staement does not throw an exception.
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are equal.
Definition assert.hpp:50
static void is_negative(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that ta condition is negative.
Definition assert.hpp:697
static void is_not_empty(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that collection does not contain any item.
Definition assert.hpp:742
static void is_empty(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that collection contains an item.
Definition assert.hpp:371
static void is_true(bool condition, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that a condition is true.
static void is_null(const xtd::uptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
Definition assert.hpp:1073
static void are_equal(double expected, double actual, double tolerance, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are equal.
static void is_null(const xtd::sptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
Definition assert.hpp:1103
static void is_NaN(float value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
that a value is NaN.
static void is_not_zero(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that ta condition is not zero.
Definition assert.hpp:994
static void is_positive(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that ta condition is positive.
Definition assert.hpp:1187
static void is_not_null(const pointer_t *pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
Definition assert.hpp:822
static void is_null(std::nullptr_t pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
static void does_not_throw(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the staement does not throw an exception.
static void does_not_throw(const std::function< void()> &statement, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the staement does not throw an exception.
static void is_not_null(std::nullptr_t pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
static void is_not_null(const xtd::sptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
Definition assert.hpp:912
static void contains(const item_t &item, const collection_t &collection, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that collection contains an item.
Definition assert.hpp:297
static void is_not_null(const xtd::sptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is not null.
Definition assert.hpp:898
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the first value is is_less than the second value.
Definition assert.hpp:553
static void are_not_same(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two objects do refer to differents objects.
Definition assert.hpp:215
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two objects do refer to differents objects.
Definition assert.hpp:250
static void is_null(const std::optional< optional_t > &opt, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the optional is std::nullopt.
Definition assert.hpp:1057
static void is_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
static void is_instance_of(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that an object is of the type supplied or a derived type.
Definition assert.hpp:523
static void is_NaN(long double value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
that a value is NaN.
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the first value is greater than the second value.
Definition assert.hpp:443
static void is_not_null(const std::optional< optional_t > &opt, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the optional is not std::nullopt.
Definition assert.hpp:852
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that two type are not equal.
Definition assert.hpp:186
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())
Asserts that two type are not equal.
Definition assert.hpp:173
static void is_null(const xtd::sptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
Definition assert.hpp:1117
static void is_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
Definition assert.hpp:1012
static void is_false(bool condition, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that a condition is false.
static void contains(const item_t &item, const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that collection contains an item.
Definition assert.hpp:283
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the first value is greater than or equal to the second value.
Definition assert.hpp:470
static void is_true(bool condition, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that a condition is true.
static void is_NaN(double value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that a value is NaN.
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the first value is is_less than the second value.
Definition assert.hpp:540
static void is_false(bool condition, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that a condition is false.
static void is_not_null(const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the optional is not std::nullopt.
Definition assert.hpp:838
static void is_null(const xtd::wptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that the pointer is null.
Definition assert.hpp:1134
static void is_not_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that ta condition is not zero.
Definition assert.hpp:980
The base class for assert.
Definition base_assert.hpp:30
#define tunit_export_
Define shared library export.
Definition tunit_export.hpp:13
#define typeof_
Used to obtain the type object of a specified type or object.
Definition typeof.hpp:45
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:27
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
std::weak_ptr< type_t > wptr
The xtd::uptr object is a weak pointer.
Definition wptr.hpp:17
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:26
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition to_string.hpp:41
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10