windows-nt/Source/XPSP1/NT/admin/wmi/wbem/cppunit/samples/exampletestcase.h

38 lines
594 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef CPP_UNIT_EXAMPLETESTCASE_H
#define CPP_UNIT_EXAMPLETESTCASE_H
#include "TestCase.h"
#include "TestSuite.h"
#include "TestCaller.h"
/*
* A test case that is designed to produce
* example errors and failures
*
*/
class ExampleTestCase : public TestCase
{
protected:
double m_value1;
double m_value2;
public:
ExampleTestCase (std::string name) : TestCase (name) {}
void setUp ();
static Test *suite ();
protected:
void example ();
void anotherExample ();
void testAdd ();
void testDivideByZero ();
void testEquals ();
};
#endif