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
Parameter | Type | Description |
---|---|---|
func | const std::function<void()>& | Function to check for throwing. |
Return Value
True if function throws, false otherwise.
See Also
- Struct TestTools
- Namespace System
- Library Aspose.Slides