CoreComponents 3.0.0
A Modern C++ Toolkit
No Matches
TestCase Class Reference

Defines a test case. More...

#include <cc/TestCase>

Public Member Functions

 TestCase (const String &name, Function< void()> &&run, bool skip=false)
 Create a new test case.
String name () const
bool skip () const
int assertionCount () const
int failureCount () const
bool caughtException () const
bool passed () const
void run ()

Detailed Description

Defines a test case.

Constructor & Destructor Documentation

◆ TestCase()

TestCase ( const String & name,
Function< void()> && run,
bool skip = false )

Create a new test case.

nameName used to identify this test case in test reports
runTest function to run
skipSkip switch