49      template<
typename expected_t, 
typename actual_t>
 
   62      template<
typename expected_t, 
typename actual_t>
 
   64        if (actual == expected)
 
   65          succeed(message, stack_frame);
 
   72#if defined(__xtd__cpp_lib_char8_t) 
  174      template<
typename expected_t, 
typename actual_t>
 
  187      template<
typename expected_t, 
typename actual_t>
 
  189        if (actual != expected)
 
  190          succeed(message, stack_frame);
 
  197#if defined(__xtd__cpp_lib_char8_t) 
  218      template<
typename expected_t, 
typename actual_t>
 
  234      template<
typename expected_t, 
typename actual_t>
 
  236        if (&actual != &expected)
 
  237          succeed(message, stack_frame);
 
  255      template<
typename expected_t, 
typename actual_t>
 
  271      template<
typename expected_t, 
typename actual_t>
 
  273        if (&actual == &expected)
 
  274          succeed(message, stack_frame);
 
  290      template<
typename item_t, 
typename collection_t>
 
  304      template<
typename item_t, 
typename collection_t>
 
  306        auto result = std::find(collection.begin(), collection.end(), item);
 
  307        if (result != collection.end())
 
  308          succeed(message, stack_frame);
 
  310          fail(
"collection containing " + 
to_string(item), join_items(collection), message, stack_frame);
 
  314      template<
typename item_t, 
typename value_t>
 
  316      template<
typename item_t, 
typename value_t>
 
  318        auto result = std::find(values.begin(), values.end(), item);
 
  319        if (result != values.end())
 
  320          succeed(message, stack_frame);
 
  322          fail(
"collection containing " + 
to_string(item), join_items(values), message, stack_frame);
 
  325#if defined(__xtd__cpp_lib_char8_t) 
  368      template<
typename value_t>
 
  382      template<
typename value_t>
 
  384        if (std::empty(value))
 
  385          succeed(message, stack_frame);
 
  387          fail(
"collection <empty>", join_items(value), message, stack_frame);
 
  391      template<
typename value_t>
 
  393      template<
typename value_t>
 
  395        if (std::empty(values))
 
  396          succeed(message, stack_frame);
 
  398          fail(
"collection <empty>", join_items(values), message, stack_frame);
 
  401#if defined(__xtd__cpp_lib_char8_t) 
  445      template<
typename value1_t, 
typename value2_t>
 
  458      template<
typename value1_t, 
typename value2_t>
 
  461          succeed(message, stack_frame);
 
  468#if defined(__xtd__cpp_lib_char8_t) 
  487      template<
typename value1_t, 
typename value2_t>
 
  501      template<
typename value1_t, 
typename value2_t>
 
  504          succeed(message, stack_frame);
 
  506          fail(
"greater than or equal to " + 
to_string(val2), 
to_string(val1), message, stack_frame);
 
  511#if defined(__xtd__cpp_lib_char8_t) 
  529      template<
typename type_t, 
typename value_t>
 
  542      template<
typename type_t, 
typename value_t>
 
  544        const type_t* instance = 
dynamic_cast<const type_t*
>(&value);
 
  545        if (instance != 
nullptr)
 
  546          succeed(message, stack_frame);
 
  548          fail(
"instance of <" + typeof_<type_t>().full_name() + 
">", 
"<" + 
typeof_(value).full_name() + 
">", message, stack_frame);
 
  561      template<
typename value1_t, 
typename value2_t>
 
  574      template<
typename value1_t, 
typename value2_t>
 
  577          succeed(message, stack_frame);
 
  584#if defined(__xtd__cpp_lib_char8_t) 
  603      template<
typename value1_t, 
typename value2_t>
 
  617      template<
typename value1_t, 
typename value2_t>
 
  620          succeed(message, stack_frame);
 
  622          fail(
"less than or equal to " + 
to_string(val2), 
to_string(val1), message, stack_frame);
 
  627#if defined(__xtd__cpp_lib_char8_t) 
  722      template<
typename value_t>
 
  736      template<
typename value_t>
 
  739          succeed(message, stack_frame);
 
  741          fail(
"negative", 
to_string(value), message, stack_frame);
 
  755      template<
typename value_t>
 
  769      template<
typename value_t>
 
  771        if (!std::empty(value))
 
  772          succeed(message, stack_frame);
 
  774          fail(
"collection not <empty>", 
"<empty>", message, stack_frame);
 
  778      template<
typename value_t>
 
  780      template<
typename value_t>
 
  782        if (!std::empty(values))
 
  783          succeed(message, stack_frame);
 
  785          fail(
"collection not <empty>", 
"<empty>", message, stack_frame);
 
  788#if defined(__xtd__cpp_lib_char8_t) 
  806      template<
typename type_t, 
typename value_t>
 
  819      template<
typename type_t, 
typename value_t>
 
  821        const type_t* instance = 
dynamic_cast<const type_t*
>(&value);
 
  822        if (instance == 
nullptr)
 
  823          succeed(message, stack_frame);
 
  825          fail(
"not instance of <" + typeof_<type_t>().full_name() + 
">", 
"<" + 
typeof_(value).full_name() + 
">", message, stack_frame);
 
  840      template<
typename po
inter_t>
 
  855      template<
typename po
inter_t>
 
  857        if (pointer != 
nullptr)
 
  858          succeed(message, stack_frame);
 
  860          fail(
"not null", 
"null", message, stack_frame);
 
  873      template<
typename optional_t>
 
  887      template<
typename optional_t>
 
  889        if (opt != std::nullopt)
 
  890          succeed(message, stack_frame);
 
  892          fail(
"not null", 
"null", message, stack_frame);
 
  905      template<
typename po
inter_t>
 
  919      template<
typename po
inter_t>
 
  921        if (pointer != 
nullptr)
 
  922          succeed(message, stack_frame);
 
  924          fail(
"not null", 
"null", message, stack_frame);
 
  937      template<
typename po
inter_t>
 
  951      template<
typename po
inter_t>
 
  953        if (pointer != 
nullptr)
 
  954          succeed(message, stack_frame);
 
  956          fail(
"not null", 
"null", message, stack_frame);
 
  969      template<
typename po
inter_t>
 
  983      template<
typename po
inter_t>
 
  986          succeed(message, stack_frame);
 
  988          fail(
"not null", 
"null", message, stack_frame);
 
 1023      template<
typename value_t>
 
 1037      template<
typename value_t>
 
 1039        if (value != 
static_cast<value_t
>(0))
 
 1040          succeed(message, stack_frame);
 
 1042          fail(
"not zero", 
"0", message, stack_frame);
 
 1057      template<
typename po
inter_t>
 
 1072      template<
typename po
inter_t>
 
 1074        if (pointer == 
nullptr)
 
 1075          succeed(message, stack_frame);
 
 1077          fail(
"null", 
"not null", message, stack_frame);
 
 1090      template<
typename optional_t>
 
 1104      template<
typename optional_t>
 
 1106        if (opt == std::nullopt)
 
 1107          succeed(message, stack_frame);
 
 1109          fail(
"null", 
"not null", message, stack_frame);
 
 1122      template<
typename po
inter_t>
 
 1136      template<
typename po
inter_t>
 
 1138        if (pointer == 
nullptr)
 
 1139          succeed(message, stack_frame);
 
 1141          fail(
"null", 
"not null", message, stack_frame);
 
 1154      template<
typename po
inter_t>
 
 1168      template<
typename po
inter_t>
 
 1170        if (pointer == 
nullptr)
 
 1171          succeed(message, stack_frame);
 
 1173          fail(
"null", 
"not null", message, stack_frame);
 
 1187      template<
typename po
inter_t>
 
 1202      template<
typename po
inter_t>
 
 1205          succeed(message, stack_frame);
 
 1207          fail(
"null", 
"not null", message, stack_frame);
 
 1242      template<
typename value_t>
 
 1256      template<
typename value_t>
 
 1259          succeed(message, stack_frame);
 
 1261          fail(
"positive", 
to_string(value), message, stack_frame);
 
 1301      template<
typename value_t>
 
 1315      template<
typename value_t>
 
 1317        if (value == 
static_cast<value_t
>(0))
 
 1318          succeed(message, stack_frame);
 
 1320          fail(
"zero", 
to_string(value), message, stack_frame);
 
 1334      template<
typename exception_t>
 
 1348      template<
typename exception_t>
 
 1352          fail(
"<" + typeof_<exception_t>().full_name() + 
">", 
"<nothing>", message, stack_frame);
 
 1353        } 
catch (
const exception_t&) {
 
 1354          succeed(message, stack_frame);
 
 1357        } 
catch (
const std::exception& 
e) {
 
 1358          fail(
"<" + typeof_<exception_t>().full_name() + 
">", 
"<" + 
typeof_(
e).full_name() + 
">", message, stack_frame);
 
 1360          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:79
 
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.hpp:124
 
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.hpp: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.
 
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:369
 
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:1316
 
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:807
 
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:737
 
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:1073
 
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:235
 
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:1302
 
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:756
 
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:1137
 
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:906
 
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:446
 
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:841
 
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:1203
 
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:272
 
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:970
 
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:1091
 
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:604
 
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:618
 
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:984
 
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:1257
 
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:920
 
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:530
 
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:820
 
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:502
 
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:723
 
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:770
 
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:383
 
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:1123
 
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:1155
 
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:1038
 
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:1243
 
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:856
 
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:952
 
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:305
 
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:938
 
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:575
 
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:219
 
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:256
 
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:1105
 
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:543
 
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:459
 
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:888
 
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:188
 
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:175
 
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:1169
 
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:1058
 
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:291
 
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:488
 
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:562
 
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:874
 
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:1188
 
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:1024
 
The base class for assert.
Definition base_assert.hpp:29
 
#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::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
 
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