MQLUNIT
Public Member Functions | List of all members
MQLUNIT_Test Class Referenceabstract

Base class for all tests. More...

Inheritance diagram for MQLUNIT_Test:
Inheritance graph
[legend]

Public Member Functions

 MQLUNIT_Test ()
 Constructor : creates a test using a class name as a test name. More...
 
 MQLUNIT_Test (const string name)
 Constructor : creates a test with a provided test name. More...
 
virtual ~MQLUNIT_Test ()
 Destructor. More...
 
string getName ()
 Returns a name of a test. More...
 
virtual void run (MQLUNIT_TestResult *result, bool inherited=false)=0
 Runs the test. More...
 

Detailed Description

Base class for all tests.

An MQLUNIT_Test can be run and collect its results.

See also
MQLUNIT_TestResult

Constructor & Destructor Documentation

◆ MQLUNIT_Test() [1/2]

MQLUNIT_Test::MQLUNIT_Test ( )
inline

Constructor : creates a test using a class name as a test name.

◆ MQLUNIT_Test() [2/2]

MQLUNIT_Test::MQLUNIT_Test ( const string  name)
inline

Constructor : creates a test with a provided test name.

Parameters
name: test name

◆ ~MQLUNIT_Test()

virtual MQLUNIT_Test::~MQLUNIT_Test ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ getName()

string MQLUNIT_Test::getName ( )
inline

Returns a name of a test.

Returns
the name of the test

◆ run()

virtual void MQLUNIT_Test::run ( MQLUNIT_TestResult result,
bool  inherited = false 
)
pure virtual

Runs the test.

Parameters
result: collects the results of executing a test
inherited: set to true to tell the test it has been inherited from and is run by a child test
See also
MQLUNIT_TestResult

Implemented in MQLUNIT_TestCase, and MQLUNIT_TestSuite.


The documentation for this class was generated from the following file:

Copyright © 2017 Eneset Group Trust