CoreComponents 3.0.0
A Modern C++ Toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Modules
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 )
explicit

Create a new test case.

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