OpenWalnut
1.4.0
|
The tests for our subject class. More...
#include <WSubject_test.h>
Public Member Functions | |
void | testInstantiation (void) |
Test instantiation of objects of WSubject class. | |
void | testInstantiationWithName (void) |
Test instantiation of objects of WSubject class with name. | |
void | TestConstructorWithInfo () |
Test whether we have put the info where it belongs and intialized the rest. | |
void | testGetName () |
Test whether we can retrieve the right info with getName function. | |
void | testAddGetDataSet () |
Test adding and iterating of data sets. | |
void | testGetNumberOfDataSet () |
Test getting number of datasets. |
The tests for our subject class.
Definition at line 37 of file WSubject_test.h.
void WSubjectTest::testAddGetDataSet | ( | ) | [inline] |
Test adding and iterating of data sets.
Definition at line 83 of file WSubject_test.h.
References WSubject::addDataSet(), WSubject::getDatasets(), WSubject::m_datasets, and WSharedSequenceContainer< S >::size().
void WSubjectTest::TestConstructorWithInfo | ( | ) | [inline] |
Test whether we have put the info where it belongs and intialized the rest.
Definition at line 60 of file WSubject_test.h.
References WPersonalInformation::createDummyInformation(), and WSubject::m_personalInfo.
void WSubjectTest::testGetName | ( | ) | [inline] |
Test whether we can retrieve the right info with getName function.
Definition at line 71 of file WSubject_test.h.
References WPersonalInformation::createDummyInformation(), WPersonalInformation::getLastName(), WSubject::getName(), WPersonalInformation::setLastName(), and WPersonalInformation::setSubjectID().
void WSubjectTest::testGetNumberOfDataSet | ( | ) | [inline] |
Test getting number of datasets.
Definition at line 110 of file WSubject_test.h.
References WSubject::addDataSet(), WSubject::m_datasets, and WSharedSequenceContainer< S >::size().
void WSubjectTest::testInstantiation | ( | void | ) | [inline] |
Test instantiation of objects of WSubject class.
Definition at line 43 of file WSubject_test.h.
void WSubjectTest::testInstantiationWithName | ( | void | ) | [inline] |
Test instantiation of objects of WSubject class with name.
Definition at line 51 of file WSubject_test.h.
References WPersonalInformation::createDummyInformation().