aboutsummaryrefslogtreecommitdiff
path: root/src/unit/entities/unit
blob: 28db45f80f53ae5cc740b47f58a24cecc97816de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.1" ?>
<entity desc="Unit test framework">
	<param name="name" required="yes" desc="Name of the class"/>
	<file
		name="source"
		filename="{=name:%tolower}.cpp"
>#include "bu/unitsuite.h"

class Unit : public Bu::UnitSuite
{
public:
	Unit()
	{
		setName("{=name}");
		addTest( Unit::test01 );
	}

	virtual ~Unit()
	{
	}

	void test01()
	{
		unitTest( 0 == 5 );
	}
};

int main( int argc, char *argv[] ){ return Unit().run( argc, argv ); }
</file>
</entity>