This page provides a walk through practical Unit Testing.
Here is the test for a Calculator class.
#include <iostream>
#include "Calculator.h"
int main()
{
Calculator calc;
return 0;
}
Put the following in a file called Calculator.h
class Calculator
{
public:
private:
};