IsEmpty()

TestTools::IsEmpty(const System::String&) method

Checks if string is empty.

static bool System::TestTools::IsEmpty(const System::String &str)

Arguments

ParameterTypeDescription
strconst System::String&String to check for being empty.

Return Value

True if string is empty (null-length), false otherwise.

TestTools::IsEmpty(const SharedPtr<T>&) method

Checks if collection is empty.

template<typename T> static bool System::TestTools::IsEmpty(const SharedPtr<T> &collection)

Template parameters

ParameterDescription
TCollection type.

Arguments

ParameterTypeDescription
collectionconst SharedPtr<T>&Collection to check.

Return Value

True if collection has zero element count, false otherwise.

See Also