blob: ae753058a9de86214bce60c2aa4396b9fc2370f5 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/**
* \file block_tests.cpp
* \brief Automated tests for the configuration blocks API.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#include "premake.h"
#include "testing/testing.h"
extern "C" {
#include "project/solution.h"
#include "project/project.h"
#include "project/block.h"
}
struct FxBlock
{
Solution sln;
Project prj;
Block blk;
FxBlock()
{
sln = solution_create();
prj = project_create();
blk = block_create();
}
~FxBlock()
{
block_destroy(blk);
project_destroy(prj);
solution_destroy(sln);
}
};
SUITE(project)
{
TEST_FIXTURE(FxBlock, Create_ReturnsObject_OnSuccess)
{
CHECK(blk != NULL);
}
}
|