AssertThrows()

TestTools::AssertThrows(const std::function<void()>&) method

Checks if function throws exception of any type.

static bool System::TestTools::AssertThrows(const std::function<void()> &func)

Arguments

ParameterTypeDescription
funcconst std::function<void()>&Function to check for throwing.

Return Value

True if function throws, false otherwise.

See Also