40      template<
typename expected_t, 
typename actual_t>
 
   53      template<
typename expected_t, 
typename actual_t>
 
   56          assert::are_equal(expected, actual, message, stack_frame);
 
   64#if defined(__xtd__cpp_lib_char8_t) 
  167      template<
typename expected_t, 
typename actual_t>
 
  181      template<
typename expected_t, 
typename actual_t>
 
  184          assert::are_not_equal(expected, actual, message, stack_frame);
 
  192#if defined(__xtd__cpp_lib_char8_t) 
  213      template<
typename expected_t, 
typename actual_t>
 
  229      template<
typename expected_t, 
typename actual_t>
 
  232          assert::are_not_same(expected, actual, message, stack_frame);
 
  251      template<
typename expected_t, 
typename actual_t>
 
  267      template<
typename expected_t, 
typename actual_t>
 
  270          assert::are_same(expected, actual, message, stack_frame);
 
  287      template<
typename item_t, 
typename collection_t>
 
  301      template<
typename item_t, 
typename collection_t>
 
  304          assert::contains(item, collection, message, stack_frame);
 
  311      template<
typename item_t, 
typename value_t>
 
  313      template<
typename item_t, 
typename value_t>
 
  316          assert::contains(item, values, message, stack_frame);
 
  322#if defined(__xtd__cpp_lib_char8_t) 
  365      template<
typename value_t>
 
  379      template<
typename value_t>
 
  382          assert::is_empty(value, message, stack_frame);
 
  389      template<
typename value_t>
 
  391      template<
typename value_t>
 
  394          assert::is_empty(values, message, stack_frame);
 
  400#if defined(__xtd__cpp_lib_char8_t) 
  444      template<
typename value1_t, 
typename value2_t>
 
  457      template<
typename value1_t, 
typename value2_t>
 
  460          assert::is_greater(val1, val2, 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          assert::is_greater_or_equal(val1, val2, message, stack_frame);
 
  512#if defined(__xtd__cpp_lib_char8_t) 
  530      template<
typename type_t, 
typename value_t>
 
  543      template<
typename type_t, 
typename value_t>
 
  546          assert::is_instance_of<type_t>(value, message, stack_frame);
 
  562      template<
typename value1_t, 
typename value2_t>
 
  575      template<
typename value1_t, 
typename value2_t>
 
  578          assert::is_less(val1, val2, message, stack_frame);
 
  586#if defined(__xtd__cpp_lib_char8_t) 
  605      template<
typename value1_t, 
typename value2_t>
 
  619      template<
typename value1_t, 
typename value2_t>
 
  622          assert::is_less_or_equal(val1, val2, message, stack_frame);
 
  630#if defined(__xtd__cpp_lib_char8_t) 
  725      template<
typename value_t>
 
  739      template<
typename value_t>
 
  742          assert::is_negative(value, message, stack_frame);
 
  759      template<
typename value_t>
 
  773      template<
typename value_t>
 
  776          assert::is_not_empty(value, message, stack_frame);
 
  783      template<
typename value_t>
 
  785      template<
typename value_t>
 
  788          assert::is_not_empty(value, message, stack_frame);
 
  794#if defined(__xtd__cpp_lib_char8_t) 
  812      template<
typename type_t, 
typename value_t>
 
  825      template<
typename type_t, 
typename value_t>
 
  828          assert::is_not_instance_of<type_t>(value, message, stack_frame);
 
  846      template<
typename po
inter_t>
 
  861      template<
typename po
inter_t>
 
  864          assert::is_not_null(pointer, message, stack_frame);
 
  880      template<
typename optional_t>
 
  894      template<
typename optional_t>
 
  897          assert::is_not_null(opt, message, stack_frame);
 
  913      template<
typename po
inter_t>
 
  927      template<
typename po
inter_t>
 
  930          assert::is_not_null(pointer, message, stack_frame);
 
  946      template<
typename po
inter_t>
 
  960      template<
typename po
inter_t>
 
  963          assert::is_not_null(pointer, message, stack_frame);
 
  980      template<
typename po
inter_t>
 
  995      template<
typename po
inter_t>
 
  998          assert::is_not_null(pointer, message, stack_frame);
 
 1036      template<
typename value_t>
 
 1050      template<
typename value_t>
 
 1053          assert::is_not_zero(value, message, stack_frame);
 
 1071      template<
typename po
inter_t>
 
 1086      template<
typename po
inter_t>
 
 1089          assert::is_null(pointer, message, stack_frame);
 
 1105      template<
typename optional_t>
 
 1119      template<
typename optional_t>
 
 1122          assert::is_null(opt, message, stack_frame);
 
 1138      template<
typename po
inter_t>
 
 1152      template<
typename po
inter_t>
 
 1155          assert::is_null(pointer, message, stack_frame);
 
 1171      template<
typename po
inter_t>
 
 1185      template<
typename po
inter_t>
 
 1188          assert::is_null(pointer, message, stack_frame);
 
 1206      template<
typename po
inter_t>
 
 1222      template<
typename po
inter_t>
 
 1225          assert::is_null(pointer, message, stack_frame);
 
 1263      template<
typename value_t>
 
 1277      template<
typename value_t>
 
 1280          assert::is_positive(value, message, stack_frame);
 
 1323      template<
typename value_t>
 
 1337      template<
typename value_t>
 
 1340          assert::is_zero(value, message, stack_frame);
 
 1357      template<
typename exception_t>
 
 1371      template<
typename exception_t>
 
 1374          assert::throws<exception_t>(statement, message, stack_frame);
 
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.
 
The assume class contains a collection of static methods that implement the most common assertions us...
Definition assume.hpp:21
 
static void is_empty(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that collection contains an item.
Definition assume.hpp:380
 
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that two objects do refer to differents objects.
Definition assume.hpp:252
 
static void is_NaN(long double value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that a value is NaN.
 
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())
Assumes that the pointer is null.
Definition assume.hpp:1186
 
static void is_positive(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that ta condition is positive.
Definition assume.hpp:1278
 
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the first value is is_less than the second value.
Definition assume.hpp:563
 
static void is_true(bool condition, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that a condition is true.
 
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())
Assumes that the first value is is_less than or equal to the second value.
Definition assume.hpp:620
 
static void is_not_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that collection does not contain any item.
Definition assume.hpp:760
 
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())
Assumes that two type are equal.
Definition assume.hpp:54
 
static void contains(const item_t &item, const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that collection contains an item.
Definition assume.hpp:288
 
static void is_NaN(float value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that a value is NaN.
 
static void is_instance_of(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that an object is of the type supplied or a derived type.
Definition assume.hpp:531
 
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())
Assumes that the optional is not std::nullopt.
Definition assume.hpp:895
 
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_null(const std::optional< optional_t > &opt, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the optional is std::nullopt.
Definition assume.hpp:1120
 
static void is_not_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is not null.
 
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())
Assumes that two type are equal.
 
static void is_true(bool condition, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that a condition is true.
 
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())
Assumes that the staement does not throw an exception.
 
static void is_not_null(const xtd::uptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is not null.
Definition assume.hpp:914
 
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())
Assumes that two type are not equal.
Definition assume.hpp:168
 
static void is_negative(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that ta condition is negative.
Definition assume.hpp:740
 
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())
Assumes that ta condition is not zero.
Definition assume.hpp:1051
 
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())
Assumes that the staement does not throw an exception.
 
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())
Assumes that two objects do refer to differents objects.
Definition assume.hpp:214
 
static void is_null(const xtd::uptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is null.
Definition assume.hpp:1139
 
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())
Assumes that two objects do refer to differents objects.
Definition assume.hpp:230
 
static void is_not_instance_of(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that an object is not of the type supplied or a derived type.
Definition assume.hpp:813
 
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())
Assumes that the first value is is_less than the second value.
Definition assume.hpp:576
 
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())
Assumes that the pointer is not null.
Definition assume.hpp:996
 
static void is_NaN(double value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that a value is NaN.
 
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())
Assumes that the pointer is null.
Definition assume.hpp:1153
 
static void is_null(const pointer_t *pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is null.
Definition assume.hpp:1087
 
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())
Assumes that the pointer is not null.
Definition assume.hpp:961
 
static void is_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is null.
Definition assume.hpp:1072
 
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())
Assumes that an object is of the type supplied or a derived type.
Definition assume.hpp:544
 
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())
Assumes that the pointer is null.
Definition assume.hpp:1223
 
static void is_null(std::nullptr_t pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is null.
 
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())
Assumes that two type are equal.
 
static void is_false(bool condition, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that a condition is false.
 
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_zero(const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that ta condition is zero.
Definition assume.hpp:1338
 
static void does_not_throw(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the staement does not throw an exception.
 
static void is_false(bool condition, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that a condition is false.
 
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())
Assumes that the first value is greater than or equal to the second value.
Definition assume.hpp:502
 
static void is_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that ta condition is zero.
Definition assume.hpp:1324
 
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that two type are equal.
Definition assume.hpp:41
 
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())
Assumes that the first value is is_less than or equal to the second value.
Definition assume.hpp:606
 
static void is_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that collection contains an item.
Definition assume.hpp:366
 
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the first value is greater than the second value.
Definition assume.hpp:445
 
static void is_not_null(const xtd::sptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is not null.
Definition assume.hpp:947
 
static void is_not_null(const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the optional is not std::nullopt.
Definition assume.hpp:881
 
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())
Assumes that an object is not of the type supplied or a derived type.
Definition assume.hpp:826
 
static void is_null(const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the optional is std::nullopt.
Definition assume.hpp:1106
 
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())
Assumes that two type are equal.
 
static void is_not_null(const xtd::wptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is not null.
Definition assume.hpp:981
 
static void throws_any(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the staement does not throw an exception.
 
static void is_not_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is not null.
Definition assume.hpp:847
 
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())
Assumes that the first value is greater than the second value.
Definition assume.hpp:458
 
static void is_negative(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that ta condition is negative.
Definition assume.hpp:726
 
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_not_null(const xtd::uptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is not null.
Definition assume.hpp:928
 
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())
Assumes that two type are equal.
 
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())
Assumes that two type are not equal.
Definition assume.hpp:182
 
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())
Assumes that the pointer is not null.
Definition assume.hpp:862
 
static void is_null(const xtd::wptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is null.
Definition assume.hpp:1207
 
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())
Assumes that two objects do refer to differents objects.
Definition assume.hpp:268
 
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())
Assumes that the pointer is not null.
 
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())
Assumes that the first value is greater than or equal to the second value.
Definition assume.hpp:488
 
static void is_null(const xtd::sptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is null.
Definition assume.hpp:1172
 
static void is_positive(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that ta condition is positive.
Definition assume.hpp:1264
 
static void are_equal(double expected, double actual, double tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that two type are equal.
 
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())
Assumes that collection contains an item.
Definition assume.hpp:302
 
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())
Assumes that collection does not contain any item.
Definition assume.hpp:774
 
static void are_equal(float expected, float actual, float tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that two type are equal.
 
static void is_not_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that ta condition is not zero.
Definition assume.hpp:1037
 
static void is_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Assumes that the pointer is null.
 
The base class for assert.
Definition base_assert.hpp:29
 
#define tunit_export_
Define shared library export.
Definition tunit_export.hpp:13
 
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
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
 
Contains xtd::tunit::assert class.