#include <testCase.h>
Public Member Functions | |
std::string | getName () |
Get the name of the test case. | |
void | operator= (bool result) |
assignment operator | |
bool | operator== (bool input) |
comparitor | |
TestCase (std::string name) | |
Custom constructor. | |
TestCase () | |
Default constructor. |
Encapsulate a test case input, expected output, actual output and result (pass or fail)
TestCase::TestCase | ( | std::string | name | ) |
Custom constructor.
name | of the test case |
std::string TestCase::getName | ( | ) |
Get the name of the test case.
void TestCase::operator= | ( | bool | result | ) |
assignment operator
Sets the result of the test
result | of the test (true for pass and false for fail) |
bool TestCase::operator== | ( | bool | input | ) |
comparitor