IsNullOrEmpty()
TestTools::IsNullOrEmpty(const SharedPtr<T>&) method
Checks if collection is null or empty.
template<typename T> static bool System::TestTools::IsNullOrEmpty(const SharedPtr<T> &collection)
Template parameters
Parameter | Description |
---|---|
T | Collection type. |
Arguments
Parameter | Type | Description |
---|---|---|
collection | const SharedPtr<T>& | Collection to check. |
Return Value
True if collection is null or has zero element count, false otherwise.
TestTools::IsNullOrEmpty(const System::String&) method
Checks if string is null or empty.
static bool System::TestTools::IsNullOrEmpty(const System::String &str)
Arguments
Parameter | Type | Description |
---|---|---|
str | const System::String& | String to check. |
Return Value
True if string is null or has zero length, false otherwise.
See Also
- Typedef SharedPtr
- Class String
- Struct TestTools
- Namespace System
- Library Aspose.Slides