TestTools
Contents
[
Hide
]TestTools struct
Provides a set of useful methods that check some basic properties of different types and functions.
class TestTools
Methods
Method | Description |
---|---|
static bool AssertThrows(const std::function<void()>&) | Checks if function throws exception of any type. |
static bool IsEmpty(const System::String&) | Checks if string is empty. |
static bool IsEmpty(const SharedPtr<T>&) | Checks if collection is empty. |
static std::enable_if<std::is_arithmetic<T>::value | |
static std::enable_if<!std::is_arithmetic<T>::value&&!std::is_enum<T>::value, bool>::type IsNull(const T&) | Checks if specific value is null. Version for non-arithmetic and non-enum value types. |
static bool IsNull(const SharedPtr<T>&) | Checks if specific value is null. Version for non-arithmetic value types. |
static bool IsNull(System::Collections::Generic::KeyValuePair<K, V>&) | Checks if specific value is null. Version for key-value pairs. |
static bool IsNull(const System::String&) | Checks if string is null. |
static bool IsNullOrEmpty(const SharedPtr<T>&) | Checks if collection is null or empty. |
static bool IsNullOrEmpty(const System::String&) | Checks if string is null or empty. |
See Also
- Namespace System
- Library Aspose.Slides