Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Private Attributes
SelfTest::TestResult Class Reference

The TestResult class describes the outcome of a single test or check. More...

Public Types

enum  TestOutcome { TestPassed , TestFailed }
 

Public Member Functions

 TestResult (TestOutcome outcome, const QString &message)
 
virtual ~TestResult ()
 
const QString & getMessage () const
 
TestOutcome getOutcome () const
 
bool isFailed () const
 
bool isPassed () const
 

Private Attributes

QString message
 
TestOutcome outcome
 

Detailed Description

The TestResult class describes the outcome of a single test or check.

An outcome consists of two fields:

Member Enumeration Documentation

◆ TestOutcome

Enumerator
TestPassed 
TestFailed 

Constructor & Destructor Documentation

◆ TestResult()

SelfTest::TestResult::TestResult ( TestOutcome  outcome,
const QString &  message 
)

◆ ~TestResult()

SelfTest::TestResult::~TestResult ( )
virtual

Member Function Documentation

◆ getMessage()

const QString & SelfTest::TestResult::getMessage ( ) const

◆ getOutcome()

TestResult::TestOutcome SelfTest::TestResult::getOutcome ( ) const

◆ isFailed()

bool SelfTest::TestResult::isFailed ( ) const

◆ isPassed()

bool SelfTest::TestResult::isPassed ( ) const

Member Data Documentation

◆ message

QString SelfTest::TestResult::message
private

◆ outcome

TestOutcome SelfTest::TestResult::outcome
private