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

ParameterDescription
TCollection type.

Arguments

ParameterTypeDescription
collectionconst 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

ParameterTypeDescription
strconst System::String&String to check.

Return Value

True if string is null or has zero length, false otherwise.

See Also