xtd 0.2.0
Loading...
Searching...
No Matches
assert.h File Reference
#include "base_assert.h"
#include <functional>

Definition

Contains xtd::tunit::assert class.

Go to the source code of this file.

Classes

class  xtd::tunit::assert
 The assert class contains a collection of static methods that implement the most common assertions used in xtd::tUnit. More...
 

Namespaces

namespace  xtd
 The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
 
namespace  xtd::tunit
 The tunit namespace contains a unit test library.
 

Macros

#define abort_()
 Abort current test. This is used by the other assert functions.
 
#define are_equal_(...)
 Asserts that two type are equal.
 
#define are_not_equal_(...)
 Asserts that two type are not equal.
 
#define are_not_same_(...)
 Asserts that two objects do refer to differents objects.
 
#define are_same_(...)
 Asserts that two objects do refer to same objects.
 
#define contains_(...)
 Asserts that collection contains an item.
 
#define does_not_throw_(...)
 Asserts that the staement does not throw an exception.
 
#define fail_(...)
 Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
 
#define ignore_(...)
 Ignore current test. This is used by the other assert functions.
 
#define is_empty_(...)
 Asserts that collection contains an item.
 
#define is_false_(...)
 Asserts that a condition is false.
 
#define is_greater_(...)
 Asserts that the first value is greater than the second value.
 
#define is_greater_or_equal_(...)
 Asserts that the first value is greater than or equal to the second value.
 
#define is_instance_of_(type_t, ...)
 Asserts that an object is of the type supplied or a derived type.
 
#define is_less_(...)
 Asserts that the first value is is_less than the second value.
 
#define is_less_or_equal_(...)
 Asserts that the first value is is_less than or equal to the second value.
 
#define is_NaN_(...)
 Asserts that a value is NaN.
 
#define is_negative_(...)
 Asserts that ta condition is negative.
 
#define is_not_empty_(...)
 Asserts that collection does not contain any item.
 
#define is_not_instance_of_(type_t, ...)
 Asserts that an object is not of the type supplied or a derived type.
 
#define is_not_null_(...)
 Asserts that the pointer is not null.
 
#define is_not_zero_(...)
 Asserts that ta condition is not zero.
 
#define is_null_(...)
 Asserts that the pointer is null.
 
#define is_positive_(...)
 Asserts that ta condition is positive.
 
#define is_true_(...)
 Asserts that a condition is true.
 
#define is_zero_(...)
 Asserts that ta condition is zero.
 
#define succeed_(...)
 Generates a success with a generic message. This is used by the other assert functions.
 
#define throws_(exception_t, ...)
 Asserts that the statement throws a particular exception when called.
 
#define throws_any_(...)
 Asserts that the staement does not throw an exception.