|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Provides a set of useful methods that check some basic properties of different types and functions. More...
#include <test_tools.h>
Static Public Member Functions | |
| template<typename T > | |
| static auto | IsNull (const T &obj) -> decltype(obj==nullptr) |
| Checks if specific value is null. Version for all types which can be compared with nullptr. More... | |
| static bool | IsNull (...) |
| Checks if specific value is null. Version for all other types. More... | |
| static bool | IsEmpty (const System::String &str) |
| Checks if string is empty. More... | |
| template<typename T > | |
| static bool | IsEmpty (const SharedPtr< T > &collection) |
| Checks if collection is empty. More... | |
| template<typename T > | |
| static bool | IsNullOrEmpty (const SharedPtr< T > &collection) |
| Checks if collection is null or empty. More... | |
| static bool | IsNullOrEmpty (const System::String &str) |
| Checks if string is null or empty. More... | |
| static bool | IsNull (const System::String &str) |
| Checks if string is null. More... | |
| static bool | AssertThrows (const std::function< void()> &func) |
| Checks if function throws exception of any type. More... | |
Provides a set of useful methods that check some basic properties of different types and functions.
|
inlinestatic |
Checks if function throws exception of any type.
| func | Function to check for throwing. |
|
inlinestatic |
Checks if collection is empty.
| T | Collection type. |
| collection | Collection to check. |
|
inlinestatic |
Checks if string is empty.
| str | String to check for being empty. |
|
inlinestatic |
Checks if specific value is null. Version for all other types.
|
inlinestatic |
Checks if string is null.
| str | String to check. |
|
inlinestatic |
Checks if specific value is null. Version for all types which can be compared with nullptr.
| T | Type of value being checked. |
| obj | Value to check for null. |
|
inlinestatic |
Checks if collection is null or empty.
| T | Collection type. |
| collection | Collection to check. |
|
inlinestatic |
Checks if string is null or empty.
| str | String to check. |